Merge pull request #59 from ente-io/fix-ente-blocking-system-restart
fix app blocking system restart
This commit is contained in:
commit
378d10b4f0
|
@ -74,4 +74,6 @@ if (!gotTheLock) {
|
|||
handleDownloads(mainWindow);
|
||||
addAllowOriginHeader(mainWindow);
|
||||
});
|
||||
|
||||
app.on('before-quit', () => setIsAppQuitting(true));
|
||||
}
|
||||
|
|
|
@ -141,11 +141,7 @@ export function buildMenuBar(): Menu {
|
|||
{ type: 'separator' },
|
||||
{
|
||||
label: 'Quit ente',
|
||||
accelerator: 'CommandOrControl+Q',
|
||||
click() {
|
||||
setIsAppQuitting(true);
|
||||
app.quit();
|
||||
},
|
||||
role: 'quit',
|
||||
},
|
||||
],
|
||||
},
|
||||
|
|
Loading…
Reference in a new issue