mirror of
https://github.com/libretro/RetroArch
synced 2025-03-29 22:20:21 +00:00
(Filebrowser) Fix 'Menu Wallpaper' setting
This commit is contained in:
parent
f1acb16401
commit
61168a442f
@ -42,12 +42,18 @@ static int action_cancel_pop_default(const char *path,
|
||||
RARCH_LOG("menu_label: %s\n", menu_label);
|
||||
#endif
|
||||
|
||||
if (!string_is_empty(menu_label) &&
|
||||
if (!string_is_empty(menu_label))
|
||||
{
|
||||
if (
|
||||
string_is_equal(menu_label,
|
||||
msg_hash_to_str(MENU_ENUM_LABEL_CONTENT_COLLECTION_LIST)
|
||||
)
|
||||
)
|
||||
filebrowser_clear_type();
|
||||
msg_hash_to_str(MENU_ENUM_LABEL_CONTENT_COLLECTION_LIST)
|
||||
) ||
|
||||
string_is_equal(menu_label,
|
||||
msg_hash_to_str(MENU_ENUM_LABEL_MENU_WALLPAPER)
|
||||
)
|
||||
)
|
||||
filebrowser_clear_type();
|
||||
}
|
||||
|
||||
menu_navigation_ctl(MENU_NAVIGATION_CTL_GET_SELECTION, &new_selection_ptr);
|
||||
menu_entries_pop_stack(&new_selection_ptr, 0, 1);
|
||||
|
@ -1652,7 +1652,7 @@ static int action_ok_menu_wallpaper(const char *path,
|
||||
static int action_ok_menu_wallpaper_load(const char *path,
|
||||
const char *label, unsigned type, size_t idx, size_t entry_idx)
|
||||
{
|
||||
|
||||
filebrowser_clear_type();
|
||||
return generic_action_ok(path, label, type, idx, entry_idx,
|
||||
ACTION_OK_LOAD_WALLPAPER, MSG_UNKNOWN);
|
||||
}
|
||||
|
@ -6171,7 +6171,8 @@ bool menu_displaylist_ctl(enum menu_displaylist_ctl_state type, void *data)
|
||||
strlcpy(info->exts, "filt", sizeof(info->exts));
|
||||
break;
|
||||
case DISPLAYLIST_IMAGES:
|
||||
filebrowser_clear_type();
|
||||
if (filebrowser_get_type() != FILEBROWSER_SELECT_IMAGE)
|
||||
filebrowser_clear_type();
|
||||
info->type_default = FILE_TYPE_IMAGE;
|
||||
{
|
||||
union string_list_elem_attr attr;
|
||||
|
@ -224,6 +224,8 @@ void filebrowser_parse(void *data, unsigned type_data, bool extensions_honored)
|
||||
else
|
||||
file_type = FILE_TYPE_IMAGE;
|
||||
#endif
|
||||
if (filebrowser_types == FILEBROWSER_SELECT_IMAGE)
|
||||
file_type = FILE_TYPE_IMAGE;
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
|
Loading…
x
Reference in New Issue
Block a user