Check rendererWindow before calling show

This commit is contained in:
Thomas Zarebczan 2018-07-03 00:57:01 -04:00
parent f3b608e4ae
commit 12940ac230

View file

@ -83,7 +83,9 @@ app.on('ready', async () => {
}); });
app.on('activate', () => { app.on('activate', () => {
rendererWindow.show(); if (rendererWindow) {
rendererWindow.show();
}
}); });
app.on('will-quit', event => { app.on('will-quit', event => {