1
1
mirror of https://github.com/bitgapp/eqMac.git synced 2024-11-25 20:51:06 +03:00

manually deteching changes on some sliders

This commit is contained in:
Nodeful 2021-07-30 02:54:37 +03:00
parent 075c5d774f
commit 3c047e6b28
3 changed files with 6 additions and 2 deletions

View File

@ -233,6 +233,7 @@ export class AdvancedEqualizerComponent extends EqualizerComponent implements On
this.setSelectedPresetsGains() this.setSelectedPresetsGains()
} }
this.change.detectChanges()
this.service.updatePreset(manualPreset, { this.service.updatePreset(manualPreset, {
select: true, select: true,
transition: event.transition transition: event.transition

View File

@ -169,6 +169,7 @@ export class BasicEqualizerComponent extends EqualizerComponent implements OnIni
if (!event.transition) { if (!event.transition) {
this.setSelectedPresetsGains() this.setSelectedPresetsGains()
} }
this.change.detectChanges()
await this.service.updatePreset(manualPreset, { await this.service.updatePreset(manualPreset, {
select: true, select: true,
transition: event.transition transition: event.transition

View File

@ -1,4 +1,4 @@
import { Component, OnInit } from '@angular/core' import { ChangeDetectorRef, Component, OnInit } from '@angular/core'
import { CheckboxOption, ButtonOption, Options, SelectOption, DividerOption, FlatSliderOption, LabelOption, ValueScreenOption } from 'src/app/components/options/options.component' import { CheckboxOption, ButtonOption, Options, SelectOption, DividerOption, FlatSliderOption, LabelOption, ValueScreenOption } from 'src/app/components/options/options.component'
import { SettingsService, IconMode } from './settings.service' import { SettingsService, IconMode } from './settings.service'
import { ApplicationService } from '../../services/app.service' import { ApplicationService } from '../../services/app.service'
@ -208,6 +208,7 @@ before they go out to all users.
scrollEnabled: false, scrollEnabled: false,
userChangedValue: event => { userChangedValue: event => {
this.setUIScaleScreenValue() this.setUIScaleScreenValue()
this.changeRef.detectChanges()
if (this.uiScaleSliderDebounceTimer) { if (this.uiScaleSliderDebounceTimer) {
clearTimeout(this.uiScaleSliderDebounceTimer) clearTimeout(this.uiScaleSliderDebounceTimer)
} }
@ -333,7 +334,8 @@ before they go out to all users.
public app: ApplicationService, public app: ApplicationService,
public dialog: MatDialog, public dialog: MatDialog,
public ui: UIService, public ui: UIService,
public analytics: AnalyticsService public analytics: AnalyticsService,
private readonly changeRef: ChangeDetectorRef
) { ) {
} }