(Menu) Fix the empty setting list edge case. Prevents being stuck in an empty menu. Fixes #2509

This commit is contained in:
Jean-André Santoni 2015-12-04 05:15:43 +07:00
parent beb01b5d57
commit 5874805fe4

View File

@ -1633,7 +1633,7 @@ loop:
menu_settings_list_increment(&setting);
}
if (count == 0 && add_empty_entry)
if (count <= 1 && add_empty_entry)
menu_entries_push(info->list,
menu_hash_to_str(MENU_LABEL_VALUE_NO_SETTINGS_FOUND),
menu_hash_to_str(MENU_LABEL_NO_SETTINGS_FOUND),