mainWindow.close - be ready for null mainWindow
This commit is contained in:
parent
2ce86af093
commit
2624a6af88
1 changed files with 3 additions and 1 deletions
2
main.js
2
main.js
|
@ -369,7 +369,9 @@ function createWindow() {
|
||||||
}
|
}
|
||||||
|
|
||||||
await requestShutdown();
|
await requestShutdown();
|
||||||
|
if (mainWindow) {
|
||||||
mainWindow.readyForShutdown = true;
|
mainWindow.readyForShutdown = true;
|
||||||
|
}
|
||||||
app.quit();
|
app.quit();
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue