(Menu) Use the alternative quickmenu for the history list. Step 1.

This commit is contained in:
Jean-André Santoni 2015-12-11 16:13:18 +07:00
parent 746b7dde73
commit 339082c153

View File

@ -957,9 +957,12 @@ static int menu_displaylist_parse_playlist(menu_displaylist_info_t *info,
}
}
if (is_history)
if (!path)
menu_entries_push(info->list, fill_buf, path_playlist,
MENU_FILE_PLAYLIST_ENTRY, 0, i);
else if (is_history)
menu_entries_push(info->list, fill_buf,
path, MENU_FILE_RPL_ENTRY, 0, i);
else
menu_entries_push(info->list, label,
path, MENU_FILE_RPL_ENTRY, 0, i);
@ -2947,6 +2950,11 @@ int menu_displaylist_push_list(menu_displaylist_info_t *info, unsigned type)
ret = menu_displaylist_parse_playlist(info, playlist, path_playlist, true);
strlcpy(menu->db_playlist_file, settings->content_history_path,
sizeof(menu->db_playlist_file));
menu->playlist = content_playlist_init(menu->db_playlist_file,
COLLECTION_SIZE);
if (ret == 0)
{
info->need_refresh = true;