From e19f868e09c708dfa83fc19615d79a6f63927f40 Mon Sep 17 00:00:00 2001 From: Alexander Hartmann Date: Sun, 20 Aug 2023 17:06:35 +0200 Subject: [PATCH] Fix go to parent folder in EditorFileDialog (cherry picked from commit 40046bcf608e0a596e6872fe5d9ede6641530131) --- editor/gui/editor_file_dialog.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/editor/gui/editor_file_dialog.cpp b/editor/gui/editor_file_dialog.cpp index a7ddb984e02..72cef4b6807 100644 --- a/editor/gui/editor_file_dialog.cpp +++ b/editor/gui/editor_file_dialog.cpp @@ -1528,7 +1528,7 @@ void EditorFileDialog::_recent_selected(int p_idx) { } 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_dir(); _push_history();