From 297383365ae6e09b54351ba18a434ff963679b48 Mon Sep 17 00:00:00 2001 From: mattias-symphony <57355424+mattias-symphony@users.noreply.github.com> Date: Wed, 24 Jun 2020 14:35:19 +0200 Subject: [PATCH] SDA-2179 Ensuring screen share indicator frame is turned off when switching client versions (#1025) --- src/app/window-handler.ts | 1 + src/app/window-utils.ts | 2 ++ 2 files changed, 3 insertions(+) diff --git a/src/app/window-handler.ts b/src/app/window-handler.ts index 7f0cdb46..340fb589 100644 --- a/src/app/window-handler.ts +++ b/src/app/window-handler.ts @@ -1277,6 +1277,7 @@ export class WindowHandler { default: this.url = this.globalConfig.url + `?x-km-csrf-token=${csrfToken}`; } + this.execCmd(this.screenShareIndicatorFrameUtil, []); await this.mainWindow.loadURL(this.url); } catch (e) { logger.error(`window-handler: failed to switch client because of error ${e}`); diff --git a/src/app/window-utils.ts b/src/app/window-utils.ts index d439ba74..e2876b48 100644 --- a/src/app/window-utils.ts +++ b/src/app/window-utils.ts @@ -83,6 +83,8 @@ export const preventWindowNavigation = (browserWindow: BrowserWindow, isPopOutWi logger.info(`window-utils: received ${response} response from dialog`); } } + + windowHandler.execCmd(windowHandler.screenShareIndicatorFrameUtil, []); } if (browserWindow.isDestroyed()