Skip to content

Commit

Permalink
SDA-4061 Storing windows state should happen when we take a screensho…
Browse files Browse the repository at this point in the history
…t by hidding SDA only (finos#1698)
  • Loading branch information
sbenmoussati authored and NguyenTranHoangSym committed Aug 15, 2023
1 parent dd43b23 commit 4afe500
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/app/screen-snippet-handler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -96,10 +96,10 @@ class ScreenSnippet {
?.winName;
const mainWindow = windowHandler.getMainWindow();

this.storeWindowsState(mainWindow, currentWindowObj);

winStore.hideWindowsOnCapturing(hideOnCapture);

if (hideOnCapture) {
this.storeWindowsState(mainWindow, currentWindowObj);
winStore.hideWindowsOnCapturing(hideOnCapture);
}
if (mainWindow && windowExists(mainWindow) && isWindowsOS) {
this.shouldUpdateAlwaysOnTop = mainWindow.isAlwaysOnTop();
if (this.shouldUpdateAlwaysOnTop) {
Expand Down

0 comments on commit 4afe500

Please sign in to comment.