mirror of
https://github.com/arduino/arduino-ide.git
synced 2025-07-14 06:46:36 +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[] {
|
get windows(): BrowserWindow[] {
|
||||||
return this._windows.slice();
|
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