mirror of
https://github.com/finos/SymphonyElectron.git
synced 2025-01-16 03:32:10 -06:00
ELECTRON-710 - Fix Always on top: notification does not show on top (#491)
This commit is contained in:
parent
8bef28234d
commit
0507507ab8
@ -422,6 +422,14 @@ function setNotificationContents(notfWindow, notfObj) {
|
||||
// Display time per notification basis.
|
||||
let displayTime = notfObj.displayTime ? notfObj.displayTime : config.displayTime;
|
||||
|
||||
let browserWindows = BrowserWindow.getAllWindows();
|
||||
const mainWindow = browserWindows.find((window) => { return window.winName === 'main' });
|
||||
if (mainWindow && !mainWindow.isDestroyed()) {
|
||||
if (mainWindow.isAlwaysOnTop()) {
|
||||
notfWindow.setAlwaysOnTop(true);
|
||||
}
|
||||
}
|
||||
|
||||
if (notfWindow.displayTimer) {
|
||||
clearTimeout(notfWindow.displayTimer);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user