Check rendererWindow before calling show
This commit is contained in:
parent
f3b608e4ae
commit
12940ac230
1 changed files with 3 additions and 1 deletions
|
@ -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 => {
|
||||||
|
|
Loading…
Add table
Reference in a new issue