🐛 debug windows close

This commit is contained in:
Tw93
2024-12-21 22:25:26 +08:00
parent e58c8ec0f1
commit 66616ff23c
6 changed files with 14 additions and 14 deletions

View File

@@ -24,7 +24,7 @@ pub fn set_system_tray(app: &AppHandle) -> tauri::Result<()> {
}
"quit" => {
let _res = app.save_window_state(StateFlags::all());
std::process::exit(0);
app.get_webview_window("pake").unwrap().close().unwrap();
}
_ => (),
})

View File

@@ -120,7 +120,7 @@ pub fn run_app() {
}
#[cfg(not(target_os = "macos"))]
window.destroy().unwrap();
std::process::exit(0);
}
})
.run(tauri::generate_context!())