(Menu) menu_entries_cbs_deferred_push.c - special cases come first

This commit is contained in:
twinaphex 2015-06-07 17:14:39 +02:00
parent 64e7376046
commit 18d2f1fd63

View File

@ -453,6 +453,12 @@ static int deferred_push_default(menu_displaylist_info_t *info)
int menu_entries_cbs_init_bind_deferred_push_compare_type(menu_file_list_cbs_t *cbs, unsigned type,
uint32_t label_hash)
{
if (type == MENU_SETTING_GROUP)
cbs->action_deferred_push = deferred_push_category;
else if (type == MENU_FILE_PLAYLIST_COLLECTION)
cbs->action_deferred_push = deferred_push_rdb_collection;
else
{
switch (label_hash)
{
case MENU_LABEL_DEFERRED_CORE_UPDATER_LIST:
@ -602,13 +608,7 @@ int menu_entries_cbs_init_bind_deferred_push_compare_type(menu_file_list_cbs_t *
default:
return -1;
}
if (type == MENU_SETTING_GROUP)
cbs->action_deferred_push = deferred_push_category;
else if (type == MENU_FILE_PLAYLIST_COLLECTION)
cbs->action_deferred_push = deferred_push_rdb_collection;
else
return -1;
}
return 0;
}