Fixed Qdrant Edge which did not stop when you quit AI Studio on macOS

This commit is contained in:
Thorsten Sommer committed 2026-11-25 12:30:47 +01:00
1 parent 45ef5d4111
commit 4077e5c50f
1 file changed
+7 -2
+7 -2
View File
@@ -325,9 +325,14 @@ pub fn start_tauri(tauri_context: tauri::Context<tauri::Wry>) {
info!(Source = "Tauri"; "Run event: Tauri app is ready."); info!(Source = "Tauri"; "Run event: Tauri app is ready.");
} }
// When AI Studio restarts itself, Tauri would start the new instance in the background next:
#[cfg(target_os = "macos")]
RunEvent::Exit => { RunEvent::Exit => {
// Quitting through the menu of macOS, e.g., with Cmd+Q, skips RunEvent::ExitRequested.
// Qdrant Edge has to stop anyway, so that it unloads its stores. When it already
// stopped, this does nothing.
stop_qdrant_edge_database();
// When AI Studio restarts itself, Tauri would start the new instance in the background next:
#[cfg(target_os = "macos")]
crate::own_restart::start_new_instance_in_front(); crate::own_restart::start_new_instance_in_front();
} }