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

@@ -951,7 +951,22 @@ if (this.baseStorageKey in window.BX_EXPOSED.overrideSettings) {
str = PatcherUtils.replaceWith(str, index, '.All', '.Locked');
return str;
}
},
/*
// Disable long touch activating context menu
disableTouchContextMenu(str: string) {
let index = str.indexOf('"ContextualCardActions-module__container');
index >= 0 && (index = str.indexOf('addEventListener("touchstart"', index));
index >= 0 && (index = PatcherUtils.lastIndexOf(str, 'return ', index, 50));
if (index < 0) {
return false;
}
str = PatcherUtils.replaceWith(str, index, 'return', 'return null;');
return str;
},
*/
};
let PATCH_ORDERS: PatchArray = [

View File

@@ -246,7 +246,6 @@ export class SettingsNavigationDialog extends NavigationDialog {
items: [
PrefKey.UI_LAYOUT,
PrefKey.UI_GAME_CARD_SHOW_WAIT_TIME,
PrefKey.UI_HOME_CONTEXT_MENU_DISABLED,
PrefKey.CONTROLLER_SHOW_CONNECTION_STATUS,
PrefKey.STREAM_SIMPLIFY_MENU,
PrefKey.SKIP_SPLASH_VIDEO,