Merge pull request #2125 from NguyenTranHoangSym/SDA-4528

SDA-4528: Minimize Windows wont disappear on capture with SDA Hidden
This commit is contained in:
NguyenTranHoangSym 2024-04-11 13:33:45 +07:00 committed by GitHub
commit a9b5399e8d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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;