Skip to content

Commit

Permalink
SDA-3996 Bring to front on notification bugfix
Browse files Browse the repository at this point in the history
  • Loading branch information
sbenmoussati committed Dec 9, 2022
1 parent b081dca commit f034f28
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/app/window-actions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -115,8 +115,10 @@ const throttledWindowChanges = throttle(async (eventName, window) => {
const throttledWindowRestore = throttle(async () => {
notification.moveNotificationToTop();
const mainWebContents = windowHandler.getMainWebContents();
if (mainWebContents && !mainWebContents.isDestroyed()) {
mainWebContents.focus();
if (isWindowsOS) {
if (mainWebContents && !mainWebContents.isDestroyed()) {
mainWebContents.focus();
}
}
}, 1000);

Expand Down

0 comments on commit f034f28

Please sign in to comment.