mirror of
https://github.com/finos/SymphonyElectron.git
synced 2025-02-25 18:55:29 -06:00
Merge pull request #1016 from johankwarnmarksymphony/sda-2137
fix: SDA-2137: Cannot close SDA when opening dev tool in separated window
This commit is contained in:
commit
3dea645fb5
@ -377,6 +377,9 @@ export class WindowHandler {
|
|||||||
|
|
||||||
if (this.willQuitApp) {
|
if (this.willQuitApp) {
|
||||||
logger.info(`window-handler: app is quitting, destroying all windows!`);
|
logger.info(`window-handler: app is quitting, destroying all windows!`);
|
||||||
|
if (this.mainWindow && this.mainWindow.webContents.isDevToolsOpened()) {
|
||||||
|
this.mainWindow.webContents.closeDevTools();
|
||||||
|
}
|
||||||
return this.destroyAllWindows();
|
return this.destroyAllWindows();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user