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); handleDownloads(mainWindow);
addAllowOriginHeader(mainWindow); addAllowOriginHeader(mainWindow);
}); });
app.on('before-quit', () => setIsAppQuitting(true));
} }

View file

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