feat: save window size and position

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

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);