From 07e1f6e7485f49a22db053049e58839e9a227df9 Mon Sep 17 00:00:00 2001 From: twinaphex Date: Sun, 1 May 2016 17:43:37 +0200 Subject: [PATCH] Only show 'Download Core' so far when no core is yet added --- menu/menu_displaylist.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/menu/menu_displaylist.c b/menu/menu_displaylist.c index 95b69f7465..a019b1c277 100644 --- a/menu/menu_displaylist.c +++ b/menu/menu_displaylist.c @@ -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);