mirror of
https://github.com/finos/SymphonyElectron.git
synced 2026-10-25 14:20:04 -05:00
SDA-3996 Bring to front on notification bugfix
This commit is contained in:
1 parent
b081dca9c5
commit
f034f283ba
1 file changed
+4
-2
@@ -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);
|
||||
|
||||
|
||||
Reference in new issue
Block a user