From 17cc90476191a19d514c31c4216ae969999a9beb Mon Sep 17 00:00:00 2001 From: Tw93 Date: Sat, 14 Jan 2023 00:08:54 +0800 Subject: [PATCH] =?UTF-8?q?:lipstick:=20=E4=BC=98=E5=8C=96=E4=BB=A3?= =?UTF-8?q?=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src-tauri/src/main.rs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src-tauri/src/main.rs b/src-tauri/src/main.rs index 76ee15c..375bc09 100644 --- a/src-tauri/src/main.rs +++ b/src-tauri/src/main.rs @@ -154,16 +154,15 @@ fn main() -> wry::Result<()> { *default_path = path.clone(); let submitted = proxy .send_event(UserEvent::DownloadStarted( - uri.clone(), + uri, path.display().to_string(), )) .is_ok(); - return submitted; + submitted } }; let download_completed = { - let proxy = proxy.clone(); move |_uri, path, success| { let _ = proxy.send_event(UserEvent::DownloadComplete(path, success)); }