From 927950e552b37165327c587818c03d5f45d2c161 Mon Sep 17 00:00:00 2001 From: _ov4 Date: Thu, 22 Oct 2026 02:53:42 +0000 Subject: 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 --- bundle/src-tauri/src/main.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'bundle/src-tauri/src/main.rs') 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 = app .state::() .0 -- cgit v1.3.1-4-g156e