diff --git a/menu/drivers/xmb.c b/menu/drivers/xmb.c index 89a0c30f4b..f43135be94 100644 --- a/menu/drivers/xmb.c +++ b/menu/drivers/xmb.c @@ -3081,13 +3081,16 @@ static int deferred_push_content_actions(menu_displaylist_info_t *info) static int xmb_list_bind_init_compare_label(menu_file_list_cbs_t *cbs, uint32_t label_hash) { - switch (label_hash) + if (cbs && cbs->enum_idx != MENU_ENUM_LABEL_UNKNOWN) { - case MENU_LABEL_CONTENT_ACTIONS: - cbs->action_deferred_push = deferred_push_content_actions; - break; - default: - return -1; + switch (cbs->enum_idx) + { + case MENU_ENUM_LABEL_CONTENT_ACTIONS: + cbs->action_deferred_push = deferred_push_content_actions; + break; + default: + return -1; + } } return 0; diff --git a/menu/intl/menu_hash_us.c b/menu/intl/menu_hash_us.c index f6e3e78fdf..7d56d4a30d 100644 --- a/menu/intl/menu_hash_us.c +++ b/menu/intl/menu_hash_us.c @@ -26,6 +26,8 @@ static const char *menu_hash_to_str_us_label_enum(enum menu_hash_enums msg) { switch (msg) { + case MENU_ENUM_LABEL_CONTENT_ACTIONS: + return "content_actions"; case MENU_ENUM_LABEL_CPU_ARCHITECTURE: return "system_information_cpu_architecture"; case MENU_ENUM_LABEL_CPU_CORES: diff --git a/menu/menu_hash.h b/menu/menu_hash.h index 02d0614f87..eb08da2768 100644 --- a/menu/menu_hash.h +++ b/menu/menu_hash.h @@ -54,6 +54,8 @@ enum menu_hash_enums MENU_ENUM_LABEL_VALUE_PARENT_DIRECTORY, MENU_ENUM_LABEL_PARENT_DIRECTORY, + MENU_ENUM_LABEL_CONTENT_ACTIONS, + MENU_ENUM_LABEL_RUN, MENU_ENUM_LABEL_CB_THUMBNAILS_UPDATER_DOWNLOAD, @@ -821,7 +823,6 @@ enum menu_hash_enums MENU_ENUM_LABEL_VALUE_HISTORY_LIST_ENABLE, MENU_ENUM_LABEL_CONTENT_HISTORY_SIZE, MENU_ENUM_LABEL_VALUE_CONTENT_HISTORY_SIZE, - MENU_ENUM_LABEL_CONTENT_ACTIONS, MENU_ENUM_LABEL_DETECT_CORE_LIST, MENU_ENUM_LABEL_VALUE_DETECT_CORE_LIST, MENU_ENUM_LABEL_DETECT_CORE_LIST_OK, @@ -1701,7 +1702,6 @@ enum menu_hash_enums #define MENU_LABEL_NETWORK_REMOTE_ENABLE 0x99cd4420U #define MENU_LABEL_NETWORK_REMOTE_PORT 0x9aef9e18U -#define MENU_LABEL_CONTENT_ACTIONS 0xa0d76970U #define MENU_LABEL_DETECT_CORE_LIST 0xaa07c341U #define MENU_LABEL_DETECT_CORE_LIST_OK 0xabba2a7aU #define MENU_LABEL_START_CORE 0xb0b6ae5bU