better fps testing ui + more info + comment + users minor update

This commit is contained in:
2025-11-06 03:08:20 +08:00
parent 8550887bfb
commit 4c0c33382f
10 changed files with 682 additions and 197 deletions

View File

@@ -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路径和游戏路径是否有效