feat: save window size and position

This commit is contained in:
GyDi committed 2023-07-22 10:58:16 +08:00
1 parent 8028e145f1
commit 038e93ea6a
4 files changed
+71 -11

No files matched your search

+2
View File
@@ -141,6 +141,8 @@ impl Tray {
"restart_clash" => feat::restart_clash_core(),
"restart_app" => api::process::restart(&app_handle.env()),
"quit" => {
let _ = resolve::save_window_size_position(app_handle);
resolve::resolve_reset();
api::process::kill_children();
app_handle.exit(0);