dev-prepare #2
@@ -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": {
|
||||||
|
|||||||
@@ -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" })
|
||||||
}}
|
}}
|
||||||
|
|||||||
Reference in New Issue
Block a user