mirror of
https://github.com/finos/SymphonyElectron.git
synced 2024-11-22 08:57:00 -06:00
SDA-3516 - Focus main web contents on restore (#1309)
This commit is contained in:
parent
f0c2a6bfe1
commit
3cbd7dbf2c
@ -108,6 +108,10 @@ const throttledWindowChanges = throttle(async (eventName) => {
|
||||
|
||||
const throttledWindowRestore = throttle(async () => {
|
||||
notification.moveNotificationToTop();
|
||||
const mainWebContents = windowHandler.getMainWebContents();
|
||||
if (mainWebContents && !mainWebContents.isDestroyed()) {
|
||||
mainWebContents.focus();
|
||||
}
|
||||
}, 1000);
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user