From 3a8a8442df74cde0222e3e54d8d5fb38db70a516 Mon Sep 17 00:00:00 2001 From: NguyenTranHoangSym Date: Tue, 9 Apr 2024 09:26:59 +0700 Subject: [PATCH] SDA-4528: Minimize Windows wont disappear on capture with SDA Hidden --- src/app/stores/window-store.ts | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/app/stores/window-store.ts b/src/app/stores/window-store.ts index 8383c8fb..1ed1222c 100644 --- a/src/app/stores/window-store.ts +++ b/src/app/stores/window-store.ts @@ -95,16 +95,19 @@ export class WindowStore { const fullscreenedWindows: IWindowState[] = []; // Restoring all windows except focused one storedWindows.windows.forEach((currentWindow) => { - if (currentWindow && currentWindow.isVisible) { + if (currentWindow) { const window: ICustomBrowserWindow | undefined = getWindowByName( currentWindow.id || '', ) as ICustomBrowserWindow; if (window) { if (currentWindow.isFullScreen) { fullscreenedWindows.push(currentWindow); - } else if (!currentWindow.minimized && !currentWindow.focused) { + } else if (!currentWindow.focused) { window.showInactive(); window.moveTop(); + if (currentWindow.minimized) { + window.minimize(); + } } if (currentWindow.focused) { focusedWindowToRestore = window;