sda-2140 screen share indicator is not closeable so we have to destroy it

This commit is contained in:
Johan Kwarnmark 2020-06-08 14:58:07 +02:00
parent 6e3e53aa38
commit 9fe91a3b78

View File

@ -562,7 +562,11 @@ export class WindowHandler {
if (browserWindow && windowExists(browserWindow)) {
// Closes only child windows
if (browserWindow.winName !== apiName.mainWindowName && browserWindow.winName !== apiName.notificationWindowName) {
browserWindow.close();
if (browserWindow.closable) {
browserWindow.close();
} else {
browserWindow.destroy();
}
}
}
});