bugfix: widthoverride label being none% (#3030)
This commit is contained in:
parent
be6285b9d4
commit
5f0859c202
1 changed files with 3 additions and 0 deletions
|
|
@ -594,6 +594,9 @@ export class MangaReaderComponent implements OnInit, AfterViewInit, OnDestroy {
|
||||||
takeUntilDestroyed(this.destroyRef)
|
takeUntilDestroyed(this.destroyRef)
|
||||||
).subscribe(() => {});
|
).subscribe(() => {});
|
||||||
|
|
||||||
|
//sets the default override to 0, fixing the none% bug
|
||||||
|
this.generalSettingsForm.get('widthSlider')!.setValue(0);
|
||||||
|
|
||||||
//send the current width override value to the label
|
//send the current width override value to the label
|
||||||
this.widthOverrideLabel$ = this.readerSettings$?.pipe(
|
this.widthOverrideLabel$ = this.readerSettings$?.pipe(
|
||||||
map(values => (parseInt(values.widthSlider) <= 0) ? '' : values.widthSlider + '%'),
|
map(values => (parseInt(values.widthSlider) <= 0) ? '' : values.widthSlider + '%'),
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue