[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

1
src-tauri/cstb/app.json Normal file
View File

@@ -0,0 +1 @@
{"notice":"","inited":false,"hasUpdate":false,"version":"x.y.z","useMirror":true}

View File

@@ -0,0 +1 @@
{}

1
src-tauri/cstb/tool.json Normal file
View File

@@ -0,0 +1 @@
{"powerPlan":0,"launchOptions":["sdfasdfasdf","-novid -high -w 1920 -h 1080 -freq 144 -sw -noborder","-novid -high -freq 144 -fullscreen -allow_third_party_software"],"launchIndex":0}

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);