Only show 'Download Core' so far when no core is yet added

This commit is contained in:
twinaphex 2016-05-01 17:43:37 +02:00
parent 1b9d9647b0
commit 07e1f6e748

View File

@ -2651,13 +2651,6 @@ static int menu_displaylist_parse_generic(
list_size = str_list->size;
#ifdef HAVE_NETWORKING
if (hash_label == MENU_LABEL_CORE_LIST)
menu_entries_add(info->list,
"Download Core...",
menu_hash_to_str(MENU_LABEL_CORE_UPDATER_LIST),
MENU_SETTING_ACTION, 0, 0);
#endif
if (list_size == 0)
@ -2667,6 +2660,13 @@ static int menu_displaylist_parse_generic(
menu_entries_add(info->list,
menu_hash_to_str(MENU_LABEL_VALUE_NO_ITEMS),
"", MENU_SETTING_NO_ITEM, 0, 0);
#ifdef HAVE_NETWORKING
if (hash_label == MENU_LABEL_CORE_LIST)
menu_entries_add(info->list,
"Download Core...",
menu_hash_to_str(MENU_LABEL_CORE_UPDATER_LIST),
MENU_SETTING_ACTION, 0, 0);
#endif
}
string_list_free(str_list);