From 4101a4a167a617fd01986922223fd1bf42c1de06 Mon Sep 17 00:00:00 2001 From: PikachuEXE Date: Fri, 30 Apr 2021 04:51:23 +0800 Subject: [PATCH] ! Fix new window not created when all windows closed and app activated (#1203) Since the app is coded to quit for non MacOS when all windows are closed This issue happens only on MacOS --- src/main/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/index.js b/src/main/index.js index a4c7c072..614e13ba 100644 --- a/src/main/index.js +++ b/src/main/index.js @@ -423,7 +423,7 @@ function runApp() { }) app.on('activate', () => { - if (mainWindow === null) { + if (mainWindow === null || mainWindow === undefined) { createWindow() } })