mirror of
https://github.com/finos/SymphonyElectron.git
synced 2025-02-16 18:25:04 -06:00
Electron-175 - Method to set AlwaysOnTop property for about window
This commit is contained in:
parent
89e823823e
commit
837d0dc265
@ -67,6 +67,13 @@ function openAboutWindow(windowName) {
|
||||
aboutWindow.setVisibleOnAllWorkspaces(true);
|
||||
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.show();
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user