From 281b4db424fd2fc2dbcfd8c1933cb1c2ebdc1c21 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Garc=C3=ADa?= Date: Fri, 27 Sep 2024 12:30:04 +0200 Subject: [PATCH] [PM-1179] Ensure win is not destroyed in updateWindowState (#10737) --- apps/desktop/src/main/window.main.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/desktop/src/main/window.main.ts b/apps/desktop/src/main/window.main.ts index 8f7ea4fd1ed..8c78f531d73 100644 --- a/apps/desktop/src/main/window.main.ts +++ b/apps/desktop/src/main/window.main.ts @@ -323,7 +323,7 @@ export class WindowMain { } private async updateWindowState(configKey: string, win: BrowserWindow) { - if (win == null) { + if (win == null || win.isDestroyed()) { return; }