Merge pull request #213 from KiranNiranjan/ELECTRON-175

Electron-175 (AlwaysOnTop for about Symphony window)
This commit is contained in:
Vikas Shashidhar 2017-10-13 13:59:35 +05:30 committed by GitHub
commit bb28b1e7d8

View File

@ -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();
});