mirror of https://github.com/keeweb/keeweb
allow the app to quit when not minimized and window is closed
parent
62ea631269
commit
a0c553b3a9
|
@ -126,7 +126,7 @@ app.on('activate', () => {
|
|||
}
|
||||
});
|
||||
app.on('before-quit', (e) => {
|
||||
if (app.hookBeforeQuitEvent) {
|
||||
if (app.hookBeforeQuitEvent && mainWindow) {
|
||||
e.preventDefault();
|
||||
emitRemoteEvent('launcher-before-quit');
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue