Merge pull request #2437 from Goobles/dock-always-on-top-toggle

Add dock always on top setting
This commit is contained in:
Eugene
2020-04-21 09:37:50 +02:00
committed by GitHub
4 changed files with 20 additions and 3 deletions

View File

@@ -2,6 +2,7 @@ appearance:
dock: off
dockScreen: current
dockFill: 0.5
dockAlwaysOnTop: true
tabsLocation: top
cycleTabs: true
theme: Standard

View File

@@ -53,7 +53,9 @@ export class DockingService {
newBounds.y = display.bounds.y
}
this.hostApp.setAlwaysOnTop(true)
const alwaysOnTop = this.config.store.appearance.dockAlwaysOnTop
this.hostApp.setAlwaysOnTop(alwaysOnTop)
setImmediate(() => {
this.hostApp.setBounds(newBounds)
})