null rendererwindow window on quit
Checking to see if this fixes object has been destroyed error on Mac.
This commit is contained in:
parent
12940ac230
commit
37eef522b1
1 changed files with 4 additions and 0 deletions
|
@ -122,6 +122,10 @@ app.on('will-quit', event => {
|
|||
daemon.quit();
|
||||
event.preventDefault();
|
||||
}
|
||||
|
||||
if (rendererWindow) {
|
||||
rendererWindow = null;
|
||||
}
|
||||
});
|
||||
|
||||
// https://electronjs.org/docs/api/app#event-will-finish-launching
|
||||
|
|
Loading…
Reference in a new issue