From cf546123db8a012211ab0616bbfc60446e4ab048 Mon Sep 17 00:00:00 2001 From: redphx <96280+redphx@users.noreply.github.com> Date: Sat, 22 Jun 2024 10:36:02 +0700 Subject: [PATCH] Show "Off" when Sharpness is 0 --- src/utils/preferences.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/utils/preferences.ts b/src/utils/preferences.ts index 47f5c39..c061a1c 100644 --- a/src/utils/preferences.ts +++ b/src/utils/preferences.ts @@ -598,6 +598,10 @@ export class Preferences { max: 10, params: { hideSlider: true, + customTextValue: (value: any) => { + value = parseInt(value); + return value === 0 ? t('off') : value.toString(); + }, }, }, [PrefKey.VIDEO_RATIO]: {