[feat] push /home when all preparation is done at launch

This commit is contained in:
Purp1e
2025-03-21 15:06:41 +08:00
parent 2c8f9abc63
commit 1f07d876d3
7 changed files with 56 additions and 41 deletions

View File

@@ -35,6 +35,7 @@ export const useSteamStore = () => {
return {
state,
store: steamStore,
setDir,
setCsDir,
setUsers,
@@ -74,7 +75,6 @@ const SetCs2DirChecking = (checking: boolean) => {
const checkSteamDirValid = async () => {
SetSteamDirChecking(true)
const pathExist = await invoke<boolean>("check_path", { path: steamStore.state.steamDir })
console.log("steamDir", steamStore.state.steamDir, "pathExist", pathExist)
setSteamDirValid(pathExist)
setTimeout(() => {
SetSteamDirChecking(false)
@@ -84,7 +84,6 @@ const checkSteamDirValid = async () => {
const checkCs2DirValid = async () => {
SetCs2DirChecking(true)
const pathExist = await invoke<boolean>("check_path", { path: steamStore.state.cs2Dir })
console.log("cs2Dir", steamStore.state.cs2Dir, "pathExist", pathExist)
setCs2DirValid(pathExist)
setTimeout(() => {
SetCs2DirChecking(false)