From cbb5b6e4a57a8f24e3e520461e1dfd61a03bd016 Mon Sep 17 00:00:00 2001 From: Peng Xiao Date: Wed, 30 Aug 2023 11:06:43 +0800 Subject: [PATCH] fix: crash on close (#4033) --- apps/electron/src/main/main-window.ts | 1 - 1 file changed, 1 deletion(-) diff --git a/apps/electron/src/main/main-window.ts b/apps/electron/src/main/main-window.ts index 2cb21795f..05f65bab9 100644 --- a/apps/electron/src/main/main-window.ts +++ b/apps/electron/src/main/main-window.ts @@ -98,7 +98,6 @@ async function createWindow() { // close and destroy all windows BrowserWindow.getAllWindows().forEach(w => { if (!w.isDestroyed()) { - w.close(); w.destroy(); } });