fix store dir + feat launch option switch in tray

This commit is contained in:
2025-11-06 03:07:38 +08:00
parent ce410f7a26
commit 8550887bfb
7 changed files with 225 additions and 142 deletions

View File

@@ -1,11 +1,8 @@
import { appConfigDir } from "@tauri-apps/api/path"
import { commands } from "@tauri-store/shared"
import { appStore } from "./app"
import { authStore } from "./auth"
import { steamStore } from "./steam"
import { toolStore } from "./tool"
import { fpsTestStore } from "./fpsTest"
import path from "path"
import { fpsTestStore } from "./fps_test"
export async function init() {
await appStore.start()
@@ -13,7 +10,4 @@ export async function init() {
await toolStore.start()
await steamStore.start()
await fpsTestStore.start()
const appConfigDirPath = await appConfigDir()
const setPath = commands.setStoreCollectionPath("valtio")
await setPath(path.resolve(appConfigDirPath, "cstb"))
}