🐛 Fix(custom): fix tray page ui issue

This commit is contained in:
Kuingsmile
2026-01-20 13:53:39 +08:00
parent 58447d6662
commit 95d69769d2
2 changed files with 60 additions and 270 deletions

View File

@@ -22,7 +22,12 @@ export default [
action: IRPCActionType.OPEN_WINDOW,
handler: async (_: IIPCEvent, args: [windowName: string]) => {
const window = windowManager.get(args[0])
window?.show()
if (window) {
window.show()
window.focus()
} else {
windowManager.create(args[0])
}
},
},
{