Skip to content

Commit 3c047e6

Browse files
committed
manually deteching changes on some sliders
1 parent 075c5d7 commit 3c047e6

3 files changed

Lines changed: 6 additions & 2 deletions

File tree

ui/src/app/sections/effects/equalizers/advanced-equalizer/advanced-equalizer.component.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -233,6 +233,7 @@ export class AdvancedEqualizerComponent extends EqualizerComponent implements On
233233
this.setSelectedPresetsGains()
234234
}
235235

236+
this.change.detectChanges()
236237
this.service.updatePreset(manualPreset, {
237238
select: true,
238239
transition: event.transition

ui/src/app/sections/effects/equalizers/basic-equalizer/basic-equalizer.component.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -169,6 +169,7 @@ export class BasicEqualizerComponent extends EqualizerComponent implements OnIni
169169
if (!event.transition) {
170170
this.setSelectedPresetsGains()
171171
}
172+
this.change.detectChanges()
172173
await this.service.updatePreset(manualPreset, {
173174
select: true,
174175
transition: event.transition

ui/src/app/sections/settings/settings.component.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { Component, OnInit } from '@angular/core'
1+
import { ChangeDetectorRef, Component, OnInit } from '@angular/core'
22
import { CheckboxOption, ButtonOption, Options, SelectOption, DividerOption, FlatSliderOption, LabelOption, ValueScreenOption } from 'src/app/components/options/options.component'
33
import { SettingsService, IconMode } from './settings.service'
44
import { ApplicationService } from '../../services/app.service'
@@ -208,6 +208,7 @@ before they go out to all users.
208208
scrollEnabled: false,
209209
userChangedValue: event => {
210210
this.setUIScaleScreenValue()
211+
this.changeRef.detectChanges()
211212
if (this.uiScaleSliderDebounceTimer) {
212213
clearTimeout(this.uiScaleSliderDebounceTimer)
213214
}
@@ -333,7 +334,8 @@ before they go out to all users.
333334
public app: ApplicationService,
334335
public dialog: MatDialog,
335336
public ui: UIService,
336-
public analytics: AnalyticsService
337+
public analytics: AnalyticsService,
338+
private readonly changeRef: ChangeDetectorRef
337339
) {
338340
}
339341

0 commit comments

Comments
 (0)