Hide 'scan content' entries from Collections menu when 'Show Import content Tab' is disabled (RGUI, GLUI)

This commit is contained in:
jdgleaver 2018-12-10 17:01:13 +00:00
parent 51c9914cbb
commit 11391d601c

View File

@ -3458,16 +3458,19 @@ static int menu_displaylist_parse_playlists(
if (!horizontal) if (!horizontal)
{ {
#ifdef HAVE_LIBRETRODB #ifdef HAVE_LIBRETRODB
menu_entries_append_enum(info->list, if (settings->bools.menu_content_show_add)
msg_hash_to_str(MENU_ENUM_LABEL_VALUE_SCAN_DIRECTORY), {
msg_hash_to_str(MENU_ENUM_LABEL_SCAN_DIRECTORY), menu_entries_append_enum(info->list,
MENU_ENUM_LABEL_SCAN_DIRECTORY, msg_hash_to_str(MENU_ENUM_LABEL_VALUE_SCAN_DIRECTORY),
MENU_SETTING_ACTION, 0, 0); msg_hash_to_str(MENU_ENUM_LABEL_SCAN_DIRECTORY),
menu_entries_append_enum(info->list, MENU_ENUM_LABEL_SCAN_DIRECTORY,
msg_hash_to_str(MENU_ENUM_LABEL_VALUE_SCAN_FILE), MENU_SETTING_ACTION, 0, 0);
msg_hash_to_str(MENU_ENUM_LABEL_SCAN_FILE), menu_entries_append_enum(info->list,
MENU_ENUM_LABEL_SCAN_FILE, msg_hash_to_str(MENU_ENUM_LABEL_VALUE_SCAN_FILE),
MENU_SETTING_ACTION, 0, 0); msg_hash_to_str(MENU_ENUM_LABEL_SCAN_FILE),
MENU_ENUM_LABEL_SCAN_FILE,
MENU_SETTING_ACTION, 0, 0);
}
#endif #endif
if (settings->bools.menu_content_show_favorites) if (settings->bools.menu_content_show_favorites)
menu_entries_append_enum(info->list, menu_entries_append_enum(info->list,