sda-2137 if dev tools open, close it

This commit is contained in:
Johan Kwarnmark 2020-06-08 16:13:56 +02:00
parent 2398ed0005
commit 689864d651

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