MCPcopy Create free account
hub / github.com/GCWing/BitFun / quit_app

Function quit_app

src/apps/desktop/src/api/system_api.rs:432–438  ·  view source on GitHub ↗
(app: tauri::AppHandle)

Source from the content-addressed store, hash-verified

430/// chooses to quit rather than minimize to tray).
431#[tauri::command]
432pub 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).

Callers

nothing calls this directly

Calls 2

mark_clean_shutdownFunction · 0.85

Tested by

no test coverage detected