diff --git a/src/app/window-handler.ts b/src/app/window-handler.ts index 9a50b93e..4b40b057 100644 --- a/src/app/window-handler.ts +++ b/src/app/window-handler.ts @@ -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,