fix store dir + feat launch option switch in tray
This commit is contained in:
@@ -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"))
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user