Create DISPLAYLIST_SELECT
This commit is contained in:
parent
1e17ecdce1
commit
0f2eb4a8c4
|
@ -1784,6 +1784,9 @@ int menu_displaylist_push_list(menu_displaylist_info_t *info, unsigned type)
|
|||
{
|
||||
case DISPLAYLIST_NONE:
|
||||
break;
|
||||
case DISPLAYLIST_SELECT:
|
||||
menu_list_push(info->list, info->path, info->label, info->type, info->directory_ptr);
|
||||
break;
|
||||
case DISPLAYLIST_MAIN_MENU:
|
||||
case DISPLAYLIST_SETTINGS:
|
||||
menu_list_clear(info->list);
|
||||
|
|
|
@ -30,6 +30,7 @@ extern "C" {
|
|||
enum
|
||||
{
|
||||
DISPLAYLIST_NONE = 0,
|
||||
DISPLAYLIST_SELECT,
|
||||
DISPLAYLIST_MAIN_MENU,
|
||||
DISPLAYLIST_GENERIC,
|
||||
DISPLAYLIST_SETTINGS,
|
||||
|
|
|
@ -19,12 +19,15 @@
|
|||
static int action_select_default(unsigned type, const char *label,
|
||||
unsigned action)
|
||||
{
|
||||
menu_displaylist_info_t info = {0};
|
||||
menu_handle_t *menu = menu_driver_get_ptr();
|
||||
if (!menu)
|
||||
return 0;
|
||||
menu_list_push(menu->menu_list->menu_stack, "", "info_screen",
|
||||
0, menu->navigation.selection_ptr);
|
||||
return 0;
|
||||
info.list = menu->menu_list->menu_stack;
|
||||
strlcpy(info.label, "info_screen", sizeof(info.label));
|
||||
info.directory_ptr = menu->navigation.selection_ptr;
|
||||
|
||||
return menu_displaylist_push_list(&info, DISPLAYLIST_SELECT);
|
||||
}
|
||||
|
||||
void menu_entries_cbs_init_bind_select(menu_file_list_cbs_t *cbs,
|
||||
|
|
Loading…
Reference in New Issue