[ATL-483] mac not to quit with all windows closed

This commit is contained in:
Francesco Stasi 2021-08-25 17:36:49 +02:00
parent 7d5381bbde
commit 1d049d4435

View File

@ -172,4 +172,13 @@ export class ElectronMainApplication extends TheiaElectronMainApplication {
get windows(): BrowserWindow[] {
return this._windows.slice();
}
/**
* "Gently" close all windows, application will not stop if a `beforeunload` handler returns `false`.
*/
requestStop(): void {
if (process.platform !== 'darwin') {
app.quit();
}
}
}