✨ 格式调整
This commit is contained in:
@@ -1,6 +1,9 @@
|
|||||||
// at the top of main.rs - that will prevent the console from showing
|
// at the top of main.rs - that will prevent the console from showing
|
||||||
#![windows_subsystem = "windows"]
|
#![windows_subsystem = "windows"]
|
||||||
extern crate image;
|
extern crate image;
|
||||||
|
|
||||||
|
use dirs::download_dir;
|
||||||
|
use std::path::PathBuf;
|
||||||
use tauri_utils::config::{Config, WindowConfig};
|
use tauri_utils::config::{Config, WindowConfig};
|
||||||
use wry::{
|
use wry::{
|
||||||
application::{
|
application::{
|
||||||
@@ -26,9 +29,6 @@ use wry::application::window::Icon;
|
|||||||
#[cfg(any(target_os = "linux", target_os = "windows"))]
|
#[cfg(any(target_os = "linux", target_os = "windows"))]
|
||||||
use wry::webview::WebContext;
|
use wry::webview::WebContext;
|
||||||
|
|
||||||
use dirs::download_dir;
|
|
||||||
use std::path::PathBuf;
|
|
||||||
|
|
||||||
enum UserEvent {
|
enum UserEvent {
|
||||||
DownloadStarted(String, String),
|
DownloadStarted(String, String),
|
||||||
DownloadComplete(Option<PathBuf>, bool),
|
DownloadComplete(Option<PathBuf>, bool),
|
||||||
|
|||||||
Reference in New Issue
Block a user