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);
|
handleDownloads(mainWindow);
|
||||||
addAllowOriginHeader(mainWindow);
|
addAllowOriginHeader(mainWindow);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
app.on('before-quit', () => setIsAppQuitting(true));
|
||||||
}
|
}
|
||||||
|
|
|
@ -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();
|
|
||||||
},
|
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in a new issue