mirror of
https://github.com/Kuingsmile/PicList.git
synced 2026-05-25 02:00:21 +08:00
🐛 Fix(custom): fix tray page ui issue
This commit is contained in:
@@ -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])
|
||||
}
|
||||
},
|
||||
},
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user