LLM Wiki is a cross-platform desktop application that turns your documents into an organized, interlinked knowledge base — automatically. Instead of traditional RAG (retrieve-and-answer from scratch every time), the LLM incrementally builds and maintains a persistent wiki from your sources。
TypeScript
feat: add close confirmation dialog on Windows/Linux
nash_su51bccb9e07d6
diff --git a/src-tauri/src/lib.rs b/src-tauri/src/lib.rsindex d52348df..35740176 100644--- a/src-tauri/src/lib.rs+++ b/src-tauri/src/lib.rs@@ -29,15 +29,35 @@ pub fn run() {commands::vectorstore::vector_count,]).on_window_event(|window, event| {- // macOS behavior: close button hides window instead of quitting- // Cmd+Q still quits the app normallyif let tauri::WindowEvent::CloseRequested { api, .. } = event {#[cfg(target_os = "macos")]{- // Hide the window instead of closing it+ // macOS: hide window instead of quitting, Cmd+Q still quitslet _ = window.hide();api.prevent_close();}++ #[cfg(not(target_os = "macos"))]+ {+ // Windows/Linux: show confirmation dialog before closing+ use tauri::Emitter;+ api.prevent_close();+ let win = window.clone();+ tauri::async_runtime::spawn(async move {+ let confirm = tauri_plugin_dialog::MessageDialogBuilder::new(+ "Confirm Exit",+ "Are you sure you want to quit LLM Wiki?",+ )+ .kind(tauri_plugin_dialog::MessageDialogKind::Warning)+ .ok_button_label("Quit")+ .cancel_button_label("Cancel")+ .blocking_show();++ if confirm {+ let _ = win.destroy();+ }+ });+ }}}).build(tauri::generate_context!())