aboutsummaryrefslogtreecommitdiff
path: root/bundle/src-tauri
diff options
context:
space:
mode:
author_ov4 <ov4@ov4.org>2026-10-22 02:53:42 +0000
committer_ov4 <ov4@ov4.org>2026-10-22 02:53:42 +0000
commit927950e552b37165327c587818c03d5f45d2c161 (patch)
tree87b2b5ea0102d1d23036573f9e7b78e9dd2c0ef4 /bundle/src-tauri
parent21eb7861f1ca534b39b81a08a49c843c29ee48b6 (diff)
fix(bundle): stop running programs when macOS terminates the app
macOS termination such as Dock Quit skips ExitRequested and window destruction, so running programs outlived the app. Stop them on RunEvent::Exit, which every shutdown path reaches. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Diffstat (limited to 'bundle/src-tauri')
-rw-r--r--bundle/src-tauri/src/main.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/bundle/src-tauri/src/main.rs b/bundle/src-tauri/src/main.rs
index 0da6815..37b7431 100644
--- a/bundle/src-tauri/src/main.rs
+++ b/bundle/src-tauri/src/main.rs
@@ -110,7 +110,8 @@ fn main() {
.build(tauri::generate_context!())
.expect("Could not start CPSC Bundle")
.run(|app, event| match event {
- tauri::RunEvent::ExitRequested { .. } => {
+ // Also reached when macOS terminates without closing windows, such as Dock Quit.
+ tauri::RunEvent::Exit => {
let runners: Vec<Runner> = app
.state::<Runners>()
.0