mirror of
https://github.com/MindWorkAI/AI-Studio.git
synced 2026-11-25 13:33:52 +00:00
Fixed Qdrant Edge which did not stop when you quit AI Studio on macOS
This commit is contained in:
1 file changed
+7
-2
@@ -325,9 +325,14 @@ pub fn start_tauri(tauri_context: tauri::Context<tauri::Wry>) {
|
||||
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 => {
|
||||
// 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();
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user