mirror of
https://github.com/finos/SymphonyElectron.git
synced 2024-12-27 01:11:13 -06:00
SDA-4201 Minimized windows should be ignored while listing windows that needs to be hidden to take a screenshot
This commit is contained in:
parent
624d48f2e4
commit
24b6c17400
@ -47,9 +47,11 @@ export class WindowStore {
|
|||||||
|
|
||||||
currentWindows.forEach((currentWindow) => {
|
currentWindows.forEach((currentWindow) => {
|
||||||
const isFullScreen = currentWindow.isFullScreen();
|
const isFullScreen = currentWindow.isFullScreen();
|
||||||
|
const isMinimized = currentWindow.isMinimized();
|
||||||
if (isFullScreen) {
|
if (isFullScreen) {
|
||||||
this.hideFullscreenWindow(currentWindow);
|
this.hideFullscreenWindow(currentWindow);
|
||||||
} else {
|
// No need to hide minimized windows
|
||||||
|
} else if (!isMinimized) {
|
||||||
currentWindow?.hide();
|
currentWindow?.hide();
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user