fix(stage-tamagotchi): use isDestroyed() to determine whether window destroyed or not
This commit is contained in:
@@ -6,6 +6,9 @@ export function toggleWindowShow(window?: BrowserWindow | null): void {
|
||||
if (!window) {
|
||||
return
|
||||
}
|
||||
if (window.isDestroyed()) {
|
||||
return
|
||||
}
|
||||
|
||||
if (window?.isMinimized()) {
|
||||
window?.restore()
|
||||
|
||||
Reference in New Issue
Block a user