Fix go to parent folder in `EditorFileDialog`
This commit is contained in:
Rémi Verschelde 2023-09-07 13:50:55 +02:00
commit 88269cfb86
No known key found for this signature in database
GPG key ID: C3336907360768E1

View file

@ -1535,7 +1535,7 @@ void EditorFileDialog::_recent_selected(int p_idx) {
} }
void EditorFileDialog::_go_up() { void EditorFileDialog::_go_up() {
dir_access->change_dir(get_current_dir().get_base_dir()); dir_access->change_dir(get_current_dir().trim_suffix("/").get_base_dir());
update_file_list(); update_file_list();
update_dir(); update_dir();
_push_history(); _push_history();