Skip to content

Commit f034f28

Browse files
committed
SDA-3996 Bring to front on notification bugfix
1 parent b081dca commit f034f28

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/app/window-actions.ts

+4-2
Original file line numberDiff line numberDiff line change
@@ -115,8 +115,10 @@ const throttledWindowChanges = throttle(async (eventName, window) => {
115115
const throttledWindowRestore = throttle(async () => {
116116
notification.moveNotificationToTop();
117117
const mainWebContents = windowHandler.getMainWebContents();
118-
if (mainWebContents && !mainWebContents.isDestroyed()) {
119-
mainWebContents.focus();
118+
if (isWindowsOS) {
119+
if (mainWebContents && !mainWebContents.isDestroyed()) {
120+
mainWebContents.focus();
121+
}
120122
}
121123
}, 1000);
122124

0 commit comments

Comments
 (0)