have show parent dir (for dirs and files) and filter extension (for files) options visible all the time
This commit is contained in:
parent
95406cb1c6
commit
6826ec7748
|
@ -3417,17 +3417,11 @@ static int menu_displaylist_parse_generic(
|
||||||
|
|
||||||
if (list_size == 0)
|
if (list_size == 0)
|
||||||
{
|
{
|
||||||
menu_entries_append_enum(info->list,
|
|
||||||
msg_hash_to_str(MENU_ENUM_LABEL_VALUE_NO_ITEMS),
|
|
||||||
msg_hash_to_str(MENU_ENUM_LABEL_NO_ITEMS),
|
|
||||||
MENU_ENUM_LABEL_NO_ITEMS,
|
|
||||||
MENU_SETTING_NO_ITEM, 0, 0);
|
|
||||||
|
|
||||||
string_list_free(str_list);
|
string_list_free(str_list);
|
||||||
|
str_list = NULL;
|
||||||
return 0;
|
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
for (i = 0; i < list_size; i++)
|
for (i = 0; i < list_size; i++)
|
||||||
{
|
{
|
||||||
bool is_dir;
|
bool is_dir;
|
||||||
|
@ -3551,7 +3545,9 @@ static int menu_displaylist_parse_generic(
|
||||||
enum_idx,
|
enum_idx,
|
||||||
file_type, 0, 0);
|
file_type, 0, 0);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
if (str_list && str_list->size > 0)
|
||||||
string_list_free(str_list);
|
string_list_free(str_list);
|
||||||
|
|
||||||
if (items_found == 0)
|
if (items_found == 0)
|
||||||
|
@ -3561,8 +3557,6 @@ static int menu_displaylist_parse_generic(
|
||||||
msg_hash_to_str(MENU_ENUM_LABEL_NO_ITEMS),
|
msg_hash_to_str(MENU_ENUM_LABEL_NO_ITEMS),
|
||||||
MENU_ENUM_LABEL_NO_ITEMS,
|
MENU_ENUM_LABEL_NO_ITEMS,
|
||||||
MENU_SETTING_NO_ITEM, 0, 0);
|
MENU_SETTING_NO_ITEM, 0, 0);
|
||||||
|
|
||||||
goto end;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/* We don't want to show 'filter by extension' for this. */
|
/* We don't want to show 'filter by extension' for this. */
|
||||||
|
|
Loading…
Reference in New Issue