mirror of
https://github.com/finos/SymphonyElectron.git
synced 2026-08-04 02:13:10 -05:00
Electron-209 - Activating the main window after setting the alwaysOnTop property for every window
This commit is contained in:
committed by
Kiran Niranjan
parent
57ca4f211c
commit
a5dfd9f9b4
+7
-7
@@ -589,14 +589,14 @@ function isAlwaysOnTop(boolean) {
|
||||
if (browserWins.length > 0) {
|
||||
browserWins.forEach(function (browser) {
|
||||
browser.setAlwaysOnTop(boolean);
|
||||
|
||||
// An issue where changing the alwaysOnTop property
|
||||
// focus the pop-out window
|
||||
// Issue - Electron-209
|
||||
if (browser.winName === 'main') {
|
||||
activate(browser.winName);
|
||||
}
|
||||
});
|
||||
|
||||
// An issue where changing the alwaysOnTop property
|
||||
// focus the pop-out window
|
||||
// Issue - Electron-209
|
||||
if (mainWindow && mainWindow.winName) {
|
||||
activate(mainWindow.winName);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user