(app: tauri::AppHandle)
| 430 | /// chooses to quit rather than minimize to tray). |
| 431 | #[tauri::command] |
| 432 | pub async fn quit_app(app: tauri::AppHandle) -> Result<(), String> { |
| 433 | log::info!("Quit requested via quit_app command"); |
| 434 | crate::crash_diagnostics::mark_clean_shutdown("quit_app_command"); |
| 435 | crate::perform_process_exit_cleanup(); |
| 436 | app.exit(0); |
| 437 | Ok(()) |
| 438 | } |
| 439 | |
| 440 | /// Hide the main window so it lives only in the system tray (used by the "ask" |
| 441 | /// dialog when the user chooses to minimize instead of quitting). |
nothing calls this directly
no test coverage detected