Compare commits

...

1 Commits

Author SHA1 Message Date
Francesco Stasi
1d049d4435 [ATL-483] mac not to quit with all windows closed 2021-08-25 17:36:49 +02:00

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();
}
}
}