mirror of
https://github.com/libretro/RetroArch
synced 2025-03-03 04:14:00 +00:00
Add need_clear boolean variable
This commit is contained in:
parent
791f60dba8
commit
d4b291a1e4
@ -1743,6 +1743,7 @@ int menu_displaylist_push_list(menu_displaylist_info_t *info, unsigned type)
|
||||
{
|
||||
int ret = 0;
|
||||
bool need_sort = false;
|
||||
bool need_clear = false;
|
||||
bool need_refresh = false;
|
||||
bool need_push = false;
|
||||
menu_handle_t *menu = menu_driver_get_ptr();
|
||||
@ -1760,8 +1761,8 @@ int menu_displaylist_push_list(menu_displaylist_info_t *info, unsigned type)
|
||||
|
||||
menu_list_push(menu_list->menu_stack,
|
||||
info->path, info->label, info->type, info->flags);
|
||||
menu_navigation_clear(nav, true);
|
||||
ret = menu_entries_push_list(menu, info, info->flags);
|
||||
need_clear = true;
|
||||
need_push = true;
|
||||
break;
|
||||
case DISPLAYLIST_SETTINGS:
|
||||
@ -1985,6 +1986,9 @@ int menu_displaylist_push_list(menu_displaylist_info_t *info, unsigned type)
|
||||
break;
|
||||
}
|
||||
|
||||
if (need_clear)
|
||||
menu_navigation_clear(nav, true);
|
||||
|
||||
if (need_sort)
|
||||
menu_list_sort_on_alt(info->list);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user