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
4
main.js
4
main.js
|
@ -369,7 +369,9 @@ function createWindow() {
|
|||
}
|
||||
|
||||
await requestShutdown();
|
||||
mainWindow.readyForShutdown = true;
|
||||
if (mainWindow) {
|
||||
mainWindow.readyForShutdown = true;
|
||||
}
|
||||
app.quit();
|
||||
});
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue