commit
de5a76dd54
1 changed files with 7 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 => {
|
||||||
|
@ -120,6 +122,10 @@ app.on('will-quit', event => {
|
||||||
daemon.quit();
|
daemon.quit();
|
||||||
event.preventDefault();
|
event.preventDefault();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (rendererWindow) {
|
||||||
|
rendererWindow = null;
|
||||||
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
// https://electronjs.org/docs/api/app#event-will-finish-launching
|
// https://electronjs.org/docs/api/app#event-will-finish-launching
|
||||||
|
|
Loading…
Reference in a new issue