Skip to content

Commit 33daa18

Browse files
committed
fix(stage-tamagotchi): use isDestroyed() to determine whether window destroyed or not
1 parent c884b75 commit 33daa18

File tree

1 file changed

+3
-0
lines changed
  • apps/stage-tamagotchi/src/main/windows/shared

1 file changed

+3
-0
lines changed

apps/stage-tamagotchi/src/main/windows/shared/window.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@ export function toggleWindowShow(window?: BrowserWindow | null): void {
66
if (!window) {
77
return
88
}
9+
if (window.isDestroyed()) {
10+
return
11+
}
912

1013
if (window?.isMinimized()) {
1114
window?.restore()

0 commit comments

Comments
 (0)