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:
Johan Kwarnmark 2020-06-08 17:23:35 +02:00 committed by GitHub
commit 3dea645fb5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -377,6 +377,9 @@ export class WindowHandler {
if (this.willQuitApp) {
logger.info(`window-handler: app is quitting, destroying all windows!`);
if (this.mainWindow && this.mainWindow.webContents.isDevToolsOpened()) {
this.mainWindow.webContents.closeDevTools();
}
return this.destroyAllWindows();
}