null rendererwindow window on quit

Checking to see if this fixes object has been destroyed error on Mac.
This commit is contained in:
Thomas Zarebczan 2018-07-03 01:27:47 -04:00
parent 12940ac230
commit 37eef522b1

View file

@ -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