mirror of
https://github.com/finos/SymphonyElectron.git
synced 2025-02-25 18:55:29 -06:00
ELECTRON-1367 - Fix always on top issue when relaunched (#712)
This commit is contained in:
committed by
Vishwas Shashidhar
parent
b265b646f3
commit
da36f5df54
@@ -88,7 +88,7 @@ export class WindowHandler {
|
||||
|
||||
constructor(opts?: Electron.BrowserViewConstructorOptions) {
|
||||
// Use these variables only on initial setup
|
||||
this.config = config.getConfigFields([ 'isCustomTitleBar', 'mainWinPos', 'minimizeOnClose', 'notificationSettings' ]);
|
||||
this.config = config.getConfigFields([ 'isCustomTitleBar', 'mainWinPos', 'minimizeOnClose', 'notificationSettings', 'alwaysOnTop' ]);
|
||||
this.globalConfig = config.getGlobalConfigFields([ 'url', 'contextIsolation', 'customFlags' ]);
|
||||
const { url, contextIsolation, customFlags }: IConfig = this.globalConfig;
|
||||
|
||||
@@ -99,6 +99,7 @@ export class WindowHandler {
|
||||
this.isCustomTitleBar = isWindowsOS && this.config.isCustomTitleBar;
|
||||
this.windowOpts = {
|
||||
...this.getWindowOpts({
|
||||
alwaysOnTop: this.config.alwaysOnTop || false,
|
||||
frame: !this.isCustomTitleBar,
|
||||
minHeight: 300,
|
||||
minWidth: 300,
|
||||
|
||||
Reference in New Issue
Block a user