(history list/playlists) Push content settings list onto stack

after we load content
This commit is contained in:
twinaphex 2015-06-23 13:06:55 +02:00
parent e46e2a40c0
commit 5be19770f2

View File

@ -166,6 +166,7 @@ static int action_ok_playlist_entry(const char *path,
size_t selection_ptr = 0;
content_playlist_t *playlist = g_defaults.history;
menu_handle_t *menu = menu_driver_get_ptr();
menu_list_t *menu_list = menu_list_get_ptr();
uint32_t hash_label = menu_hash_calculate(label);
if (!menu)
@ -215,6 +216,19 @@ static int action_ok_playlist_entry(const char *path,
rarch_playlist_load_content(playlist, selection_ptr);
switch (hash_label)
{
case MENU_LABEL_COLLECTION:
case MENU_LABEL_RDB_ENTRY_START_CONTENT:
menu_list_pop_stack(menu_list);
break;
default:
menu_list_flush_stack(menu_list, NULL, MENU_SETTINGS);
break;
}
menu_common_push_content_settings();
return -1;
}