mirror of
https://github.com/arduino/arduino-ide.git
synced 2025-07-13 14:26:37 +00:00
[ATL-483] mac not to quit with all windows closed
This commit is contained in:
parent
7d5381bbde
commit
1d049d4435
@ -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();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user