[fix] store not saving due to dep, reset to default dir

note: changing path or start() in useEffect cause the issue
This commit is contained in:
Purp1e
2025-03-13 02:34:59 +08:00
parent 06e6c5c3eb
commit bfcf519894
6 changed files with 20 additions and 21 deletions

View File

@@ -11,7 +11,7 @@ pub fn create_tray<R: Runtime>(app: &tauri::AppHandle<R>) -> tauri::Result<()> {
let _ = TrayIconBuilder::with_id("tray")
.icon(app.default_window_icon().unwrap().clone())
.menu(&menu)
.menu_on_left_click(false)
.show_menu_on_left_click(false)
.on_menu_event(move |app, event| match event.id.as_ref() {
"quit" => {
app.exit(0);