fix(stage-tamagotchi): use isDestroyed() to determine whether window destroyed or not

This commit is contained in:
Neko Ayaka
2025-10-08 17:14:38 +08:00
parent c884b758fa
commit 33daa184fd
@@ -6,6 +6,9 @@ export function toggleWindowShow(window?: BrowserWindow | null): void {
if (!window) {
return
}
if (window.isDestroyed()) {
return
}
if (window?.isMinimized()) {
window?.restore()