Merge pull request #8206 from jdgleaver/rgui-collections

(RGUI) Add optional 'Collections' entry to main menu
This commit is contained in:
Twinaphex 2019-02-08 22:21:51 +01:00 committed by GitHub
commit 1b3acfd15b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -7568,6 +7568,16 @@ bool menu_displaylist_ctl(enum menu_displaylist_ctl_state type, menu_displaylist
menu_displaylist_parse_settings_enum(menu, info,
MENU_ENUM_LABEL_LOAD_CONTENT_HISTORY,
PARSE_ACTION, false);
#ifdef HAVE_LIBRETRODB
if (string_is_equal(settings->arrays.menu_driver, "rgui") && settings->bools.menu_content_show_playlists)
{
menu_entries_append_enum(info->list,
msg_hash_to_str(MENU_ENUM_LABEL_VALUE_CONTENT_COLLECTION_LIST),
msg_hash_to_str(MENU_ENUM_LABEL_CONTENT_COLLECTION_LIST),
MENU_ENUM_LABEL_CONTENT_COLLECTION_LIST,
MENU_SETTING_ACTION, 0, 0);
}
#endif
if (settings->bools.menu_content_show_add)
menu_displaylist_parse_settings_enum(menu, info,
MENU_ENUM_LABEL_ADD_CONTENT_LIST,