Use graceful Tauri shutdown instead of hard process exit
Replace std::process::exit(0) with app_handle.exit(0) in the tray quit handler so Tauri runs its shutdown sequence, dropping resources and firing RunEvent::Exit cleanly. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
1f216243f0
commit
f60bf3f330
1 changed files with 1 additions and 1 deletions
|
|
@ -172,7 +172,7 @@ pub fn run() {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
"quit" => {
|
"quit" => {
|
||||||
std::process::exit(0);
|
app_handle.exit(0);
|
||||||
}
|
}
|
||||||
_ => {}
|
_ => {}
|
||||||
})
|
})
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue