App option to disable context menu in Home page

This commit is contained in:
redphx
2024-05-19 10:43:44 +07:00
parent afd851861a
commit 88b63a5518
4 changed files with 40 additions and 0 deletions

View File

@@ -65,6 +65,8 @@ export enum PrefKey {
UI_LAYOUT = 'ui_layout',
UI_SCROLLBAR_HIDE = 'ui_scrollbar_hide',
UI_HOME_CONTEXT_MENU_DISABLED = 'ui_home_context_menu_disabled',
VIDEO_CLARITY = 'video_clarity',
VIDEO_RATIO = 'video_ratio',
VIDEO_BRIGHTNESS = 'video_brightness',
@@ -470,6 +472,11 @@ export class Preferences {
default: false,
},
[PrefKey.UI_HOME_CONTEXT_MENU_DISABLED]: {
label: t('disable-home-context-menu'),
default: false,
},
[PrefKey.BLOCK_SOCIAL_FEATURES]: {
label: t('disable-social-features'),
default: false,