From ec74fb464b313ddeeca315148f8041d4313db1b1 Mon Sep 17 00:00:00 2001 From: ChanTsune <41658782+ChanTsune@users.noreply.github.com> Date: Thu, 28 Dec 2023 16:55:34 +0900 Subject: [PATCH] :bug: fix too open file explorer on finish create archive --- src-tauri/src/main.rs | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src-tauri/src/main.rs b/src-tauri/src/main.rs index e541af3..0c41739 100644 --- a/src-tauri/src/main.rs +++ b/src-tauri/src/main.rs @@ -53,12 +53,15 @@ fn create( |e, path| { match e { Event::Start => (), - Event::Finish => window.emit(&archive_finish_event, path).unwrap(), + Event::Finish => { + window.emit(&archive_finish_event, path).unwrap(); + open::that(&save_dir).unwrap(); + } }; }, |e, path| match e { Event::Start => window.emit(&entry_start_event, path).unwrap(), - Event::Finish => open::that(&save_dir).unwrap(), + Event::Finish => (), }, )?) }