This commit is contained in:
Eugene Pankov
2021-05-28 20:08:27 +02:00
parent 95cc29f8a7
commit 871b06c19d
6 changed files with 21 additions and 150 deletions

View File

@@ -37,11 +37,12 @@ export class WindowSettingsTabComponent extends BaseComponent {
this.themes = config.enabledServices(this.themes)
if (this.docking) {
const dockingService = docking
if (dockingService) {
this.subscribeUntilDestroyed(hostApp.displaysChanged$, () => {
this.zone.run(() => this.screens = this.docking!.getScreens())
this.zone.run(() => this.screens = dockingService.getScreens())
})
this.screens = this.docking.getScreens()
this.screens = dockingService.getScreens()
}
this.isFluentVibrancySupported = isWindowsBuild(WIN_BUILD_FLUENT_BG_SUPPORTED)