Merge pull request #59 from ente-io/fix-ente-blocking-system-restart

fix app blocking system restart
This commit is contained in:
Manav 2022-09-03 13:11:35 +05:30 committed by GitHub
commit 378d10b4f0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 5 deletions

View file

@ -74,4 +74,6 @@ if (!gotTheLock) {
handleDownloads(mainWindow);
addAllowOriginHeader(mainWindow);
});
app.on('before-quit', () => setIsAppQuitting(true));
}

View file

@ -141,11 +141,7 @@ export function buildMenuBar(): Menu {
{ type: 'separator' },
{
label: 'Quit ente',
accelerator: 'CommandOrControl+Q',
click() {
setIsAppQuitting(true);
app.quit();
},
role: 'quit',
},
],
},