mirror of
https://github.com/finos/SymphonyElectron.git
synced 2024-11-30 12:43:59 -06:00
Merge pull request #213 from KiranNiranjan/ELECTRON-175
Electron-175 (AlwaysOnTop for about Symphony window)
This commit is contained in:
commit
bb28b1e7d8
@ -67,6 +67,13 @@ function openAboutWindow(windowName) {
|
|||||||
aboutWindow.setVisibleOnAllWorkspaces(true);
|
aboutWindow.setVisibleOnAllWorkspaces(true);
|
||||||
aboutWindow.loadURL(getTemplatePath());
|
aboutWindow.loadURL(getTemplatePath());
|
||||||
|
|
||||||
|
// sets the AlwaysOnTop property for the about window
|
||||||
|
// if the main window's AlwaysOnTop is true
|
||||||
|
let focusedWindow = BrowserWindow.getFocusedWindow();
|
||||||
|
if (focusedWindow && focusedWindow.isAlwaysOnTop()) {
|
||||||
|
aboutWindow.setAlwaysOnTop(true);
|
||||||
|
}
|
||||||
|
|
||||||
aboutWindow.once('ready-to-show', () => {
|
aboutWindow.once('ready-to-show', () => {
|
||||||
aboutWindow.show();
|
aboutWindow.show();
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user