Changed deletion path for Qdrant

This commit is contained in:
PaulKoudelka 2026-06-02 17:21:33 +02:00
parent 0e38bc657f
commit 42f46dc805

View File

@ -401,7 +401,7 @@ fn remove_obsolete_qdrant_sidecar_files<R: tauri::Runtime>(app_handle: &tauri::A
cfg_if::cfg_if! {
if #[cfg(any(target_os = "windows", target_os = "macos"))]{
if let Ok(current_exe) = std::env::current_exe() && let Some(exe_dir) = current_exe.parent() {
if (current_exe.to_string_lossy().contains("MindWork AI Studio")) {
if (exe_dir.to_string_lossy().contains("MindWork AI Studio")) {
paths.push(exe_dir.join("target").join("databases").join("qdrant"));
paths.push(exe_dir.join("qdrant.exe"));
paths.push(exe_dir.join("qdrant"));