Revert "chore: remove useless exit codes and hooks"

This reverts commit 40ff3fd4bf.
This commit is contained in:
huzibaca
2024-09-22 00:41:20 +08:00
parent 84fe9c84a8
commit e9721ecc4d
3 changed files with 5 additions and 0 deletions

View File

@@ -134,6 +134,9 @@ pub fn run() {
.expect("error while running tauri application");
app.run(|app_handle, e| match e {
tauri::RunEvent::ExitRequested { api, .. } => {
api.prevent_exit();
}
tauri::RunEvent::WindowEvent { label, event, .. } => {
if label == "main" {
match event {