Browse Source

[PM-1179] Ensure win is not destroyed in updateWindowState (#10737)

pull/11290/head
Daniel García 1 year ago committed by GitHub
parent
commit
281b4db424
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 2
      apps/desktop/src/main/window.main.ts

2
apps/desktop/src/main/window.main.ts

@ -323,7 +323,7 @@ export class WindowMain { @@ -323,7 +323,7 @@ export class WindowMain {
}
private async updateWindowState(configKey: string, win: BrowserWindow) {
if (win == null) {
if (win == null || win.isDestroyed()) {
return;
}

Loading…
Cancel
Save