From ebf4305ef4ec9eb2c8c89dd417de194d1f49343f Mon Sep 17 00:00:00 2001 From: Tw93 Date: Sun, 19 Mar 2023 10:51:19 +0800 Subject: [PATCH] =?UTF-8?q?:sparkles:=20=E6=A0=BC=E5=BC=8F=E8=B0=83?= =?UTF-8?q?=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src-tauri/src/main.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src-tauri/src/main.rs b/src-tauri/src/main.rs index 14eb67b..2261e32 100644 --- a/src-tauri/src/main.rs +++ b/src-tauri/src/main.rs @@ -1,6 +1,9 @@ // at the top of main.rs - that will prevent the console from showing #![windows_subsystem = "windows"] extern crate image; + +use dirs::download_dir; +use std::path::PathBuf; use tauri_utils::config::{Config, WindowConfig}; use wry::{ application::{ @@ -26,9 +29,6 @@ use wry::application::window::Icon; #[cfg(any(target_os = "linux", target_os = "windows"))] use wry::webview::WebContext; -use dirs::download_dir; -use std::path::PathBuf; - enum UserEvent { DownloadStarted(String, String), DownloadComplete(Option, bool),