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:
Ole-Morten Duesund 2026-02-16 14:02:45 +01:00
commit f60bf3f330

View file

@ -172,7 +172,7 @@ pub fn run() {
}
}
"quit" => {
std::process::exit(0);
app_handle.exit(0);
}
_ => {}
})