! 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
This commit is contained in:
PikachuEXE 2021-04-30 04:51:23 +08:00 committed by GitHub
parent ef710bd4ef
commit 4101a4a167
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -423,7 +423,7 @@ function runApp() {
})
app.on('activate', () => {
if (mainWindow === null) {
if (mainWindow === null || mainWindow === undefined) {
createWindow()
}
})