Skip to content

Commit

Permalink
🐛 fix too open file explorer on finish create archive
Browse files Browse the repository at this point in the history
  • Loading branch information
ChanTsune committed Dec 28, 2023
1 parent 49a33f7 commit ec74fb4
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src-tauri/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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 => (),
},
)?)
}
Expand Down

0 comments on commit ec74fb4

Please sign in to comment.