Remove "ui_home_context_menu_disabled" setting as it's no longer needed

This commit is contained in:
redphx
2024-10-18 21:41:21 +07:00
parent 82cfb11a6d
commit 7578671cc3
8 changed files with 16 additions and 43 deletions

View File

@@ -1508,11 +1508,6 @@ class GlobalSettingsStorage extends BaseSettingsStore {
label: t("hide-scrollbar"),
default: !1
},
ui_home_context_menu_disabled: {
requiredVariants: "full",
label: t("disable-home-context-menu"),
default: STATES.browser.capabilities.touch
},
ui_hide_sections: {
requiredVariants: "full",
label: t("hide-sections"),
@@ -3896,7 +3891,6 @@ var FeatureGates = {
EnableUpdateRequiredPage: !1,
ShowForcedUpdateScreen: !1
};
if (getPref("ui_home_context_menu_disabled")) FeatureGates.EnableHomeContextMenu = !1;
if (getPref("block_social_features")) FeatureGates.EnableGuideChatTab = !1;
if (BX_FLAGS.FeatureGates) FeatureGates = Object.assign(BX_FLAGS.FeatureGates, FeatureGates);
class PatcherUtils {
@@ -4647,7 +4641,6 @@ class SettingsNavigationDialog extends NavigationDialog {
items: [
"ui_layout",
"ui_game_card_show_wait_time",
"ui_home_context_menu_disabled",
"controller_show_connection_status",
"stream_simplify_menu",
"skip_splash_video",
@@ -6808,11 +6801,6 @@ function overridePreloadState() {
} catch (e) {
BxLogger.error(LOG_TAG6, e);
}
if (getPref("ui_home_context_menu_disabled")) try {
state.experiments.experimentationInfo.data.treatments.EnableHomeContextMenu = !1;
} catch (e) {
BxLogger.error(LOG_TAG6, e);
}
_state = state, STATES.appContext = deepClone(state.appContext);
}
});