Set type of 'No Items' and attempt to implement a left callback

by default
This commit is contained in:
twinaphex 2015-10-29 14:48:55 +01:00
parent dc01a392ea
commit d796ac592a
3 changed files with 11 additions and 1 deletions

View File

@ -458,6 +458,15 @@ static int menu_cbs_init_bind_left_compare_type(menu_file_list_cbs_t *cbs,
{
switch (type)
{
case MENU_SETTING_NO_ITEM:
switch (menu_label_hash)
{
case MENU_VALUE_HORIZONTAL_MENU:
case MENU_VALUE_MAIN_MENU:
BIND_ACTION_LEFT(cbs, action_left_mainmenu);
break;
}
break;
case MENU_SETTINGS_CORE_DISK_OPTIONS_DISK_INDEX:
BIND_ACTION_LEFT(cbs, disk_options_disk_idx_left);
break;

View File

@ -105,6 +105,7 @@ typedef enum
MENU_HISTORY_TAB,
MENU_ADD_TAB,
MENU_PLAYLISTS_TAB,
MENU_SETTING_NO_ITEM,
MENU_SETTING_DRIVER,
MENU_SETTING_ACTION,
MENU_SETTING_ACTION_RUN,

View File

@ -1706,7 +1706,7 @@ static int menu_displaylist_parse_load_content_settings(menu_displaylist_info_t
else
menu_entries_push(info->list,
menu_hash_to_str(MENU_LABEL_VALUE_NO_ITEMS),
"", 0, 0, 0);
"", MENU_SETTING_NO_ITEM, 0, 0);
return 0;
}