From 2dd55f3a8597a62055aa370a7fb2f78609d9523d Mon Sep 17 00:00:00 2001 From: NguyenTranHoangSym Date: Mon, 3 Apr 2023 16:30:48 +0700 Subject: [PATCH] SDA-4144: The presence status is still shown when reloading SDA --- src/app/window-utils.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/app/window-utils.ts b/src/app/window-utils.ts index 0f2368c9..e32e56d1 100644 --- a/src/app/window-utils.ts +++ b/src/app/window-utils.ts @@ -53,6 +53,7 @@ import { notification } from '../renderer/notification'; import { autoLaunchInstance } from './auto-launch-controller'; import { autoUpdate, AutoUpdateTrigger } from './auto-update-handler'; import { mainEvents } from './main-event-handler'; +import { presenceStatus } from './presence-status-handler'; import { presenceStatusStore } from './stores'; interface IStyles { @@ -815,6 +816,7 @@ export const reloadWindow = (browserWindow: ICustomBrowserWindow) => { const windowName = browserWindow.winName; const mainWebContents = windowHandler.getMainWebContents(); + const main = windowHandler.getMainWindow(); // reload the main window if ( windowName === apiName.mainWindowName && @@ -825,6 +827,8 @@ export const reloadWindow = (browserWindow: ICustomBrowserWindow) => { mainWebContents.reload(); windowHandler.closeAllWindows(); + main?.setThumbarButtons([]); + presenceStatus.onSignOut(); windowHandler.closeScreenSharingIndicator();