Merge pull request #1015 from johankwarnmarksymphony/sda-2140

fix: SDA-2140: Screen share indicator does not close after reloading/closing SDA
This commit is contained in:
Johan Kwarnmark 2020-06-08 16:05:33 +02:00 committed by GitHub
commit 2398ed0005
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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