Check rendererWindow before calling show
This commit is contained in:
@@ -83,7 +83,9 @@ app.on('ready', async () => {
|
||||
});
|
||||
|
||||
app.on('activate', () => {
|
||||
rendererWindow.show();
|
||||
if (rendererWindow) {
|
||||
rendererWindow.show();
|
||||
}
|
||||
});
|
||||
|
||||
app.on('will-quit', event => {
|
||||
|
||||
Reference in New Issue
Block a user