Revert "Fix #4920"

This reverts commit f341f70705b7332499dcfa37e18da480fcb3afca.
This commit is contained in:
twinaphex 2017-05-19 01:37:45 +02:00
parent 89dddaf9f0
commit 6d20fa96e0
2 changed files with 2 additions and 2 deletions

View File

@ -3600,7 +3600,6 @@ static int action_ok_scan_directory_list(const char *path,
static int action_ok_push_random_dir(const char *path,
const char *label, unsigned type, size_t idx, size_t entry_idx)
{
filebrowser_set_type(FILEBROWSER_SELECT_DIR);
return generic_action_ok_displaylist_push(path, path,
msg_hash_to_str(MENU_ENUM_LABEL_FAVORITES),
type, idx,

View File

@ -49,7 +49,8 @@ void filebrowser_clear_type(void)
void filebrowser_set_type(enum filebrowser_enums type)
{
filebrowser_types = type;
if (filebrowser_types != FILEBROWSER_SELECT_FILE)
filebrowser_types = type;
}
void filebrowser_parse(void *data, unsigned type_data)