Use menu_displaylist_push from one place

This commit is contained in:
twinaphex 2015-09-12 08:05:09 +02:00
parent 9201f70250
commit 80b3bc6254
3 changed files with 6 additions and 4 deletions

View File

@ -427,9 +427,7 @@ int deferred_push_content_list(void *data, void *userdata, const char *path,
const char *label, unsigned type)
{
menu_list_t *menu_list = menu_list_get_ptr();
if (!menu_list)
return -1;
return menu_displaylist_push((file_list_t*)data, menu_list->selection_buf);
return action_refresh_default((file_list_t*)data, menu_list->selection_buf);
}
static int deferred_push_database_manager_list(menu_displaylist_info_t *info)

View File

@ -17,8 +17,10 @@
#include "../menu_cbs.h"
#include "../menu_hash.h"
static int action_refresh_default(file_list_t *list, file_list_t *menu_list)
int action_refresh_default(file_list_t *list, file_list_t *menu_list)
{
if (!menu_list)
return -1;
return menu_displaylist_push(list, menu_list);
}

View File

@ -71,6 +71,8 @@ extern char core_updater_path[PATH_MAX_LENGTH];
/* Function callbacks */
int action_refresh_default(file_list_t *list, file_list_t *menu_list);
int shader_action_parameter_right(unsigned type, const char *label, bool wraparound);
int shader_action_parameter_preset_right(unsigned type, const char *label,