dev-prepare #2

Merged
purp1e merged 42 commits from dev-prepare into master 2025-03-24 02:16:40 +08:00
2 changed files with 7 additions and 3 deletions
Showing only changes of commit 88e55fa8ef - Show all commits

View File

@@ -42,7 +42,7 @@
}, },
"productName": "CS工具箱", "productName": "CS工具箱",
"mainBinaryName": "cstb", "mainBinaryName": "cstb",
"version": "0.0.3", "version": "0.0.4",
"identifier": "upup.cool", "identifier": "upup.cool",
"plugins": { "plugins": {
"deep-link": { "deep-link": {

View File

@@ -78,9 +78,13 @@ const CommonDir = () => {
</RoundedButton> </RoundedButton>
<RoundedButton <RoundedButton
onClick={async () => { onClick={async () => {
const user = steam.currentUser()
if (!user) {
addToast({ title: "请先选择用户", color: "danger" })
return
}
await invoke("open_path", { await invoke("open_path", {
// TODO 导航到 steamid32/730/local/cfg path: path.resolve(steam.state.steamDir, "userdata", user.steam_id32.toString(), "730", "local", "cfg"),
path: path.resolve(steam.state.steamDir, "userdata"),
}) })
addToast({ title: "个人CFG" }) addToast({ title: "个人CFG" })
}} }}