Skip to content

Commit

Permalink
SDA-4528: Minimize Windows wont disappear on capture with SDA Hidden
Browse files Browse the repository at this point in the history
  • Loading branch information
NguyenTranHoangSym committed Apr 9, 2024
1 parent 98f638b commit 3a8a844
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/app/stores/window-store.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 3a8a844

Please sign in to comment.