Merge pull request #8390 from orbea/root2

Fix double root directory.
This commit is contained in:
Twinaphex 2019-03-02 05:43:26 +01:00 committed by GitHub
commit 389138197b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -6009,7 +6009,12 @@ static int menu_cbs_init_bind_ok_compare_type(menu_file_list_cbs_t *cbs,
BIND_ACTION_OK(cbs, action_ok_parent_directory_push);
break;
case FILE_TYPE_DIRECTORY:
BIND_ACTION_OK(cbs, action_ok_directory_push);
if (cbs->enum_idx != MSG_UNKNOWN
|| menu_label_hash == MENU_LABEL_DISK_IMAGE_APPEND
|| menu_label_hash == MENU_LABEL_SUBSYSTEM_ADD)
BIND_ACTION_OK(cbs, action_ok_directory_push);
else
BIND_ACTION_OK(cbs, action_ok_push_random_dir);
break;
case FILE_TYPE_CARCHIVE:
if (filebrowser_get_type() == FILEBROWSER_SCAN_FILE)