better fps testing ui + more info + comment + users minor update
This commit is contained in:
@@ -45,6 +45,15 @@ export default function RootLayout({ children }: { children: React.ReactNode })
|
||||
|
||||
addToast({ title: `电源计划已切换 → ${PowerPlans[current].title}` })
|
||||
})
|
||||
|
||||
void listen<number>("tray://set_launch_index", async (event) => {
|
||||
const index = event.payload
|
||||
if (typeof index === "number" && index >= 0 && index < toolStore.state.launchOptions.length) {
|
||||
tool.setLaunchIndex(index)
|
||||
const optionName = toolStore.state.launchOptions[index].name || `启动项 ${index + 1}`
|
||||
addToast({ title: `启动项已切换 → ${optionName}` })
|
||||
}
|
||||
})
|
||||
}, [])
|
||||
|
||||
// 检测steam路径和游戏路径是否有效
|
||||
|
||||
Reference in New Issue
Block a user