Skip to content

Commit ccd84d7

Browse files
committed
[FileDialog] Use base dir instead of ".." when going up.
1 parent 63e14e1 commit ccd84d7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scene/gui/file_dialog.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -534,7 +534,7 @@ bool FileDialog::_is_open_should_be_disabled() {
534534
}
535535

536536
void FileDialog::_go_up() {
537-
_change_dir("..");
537+
_change_dir(get_current_dir().trim_suffix("/").get_base_dir());
538538
_push_history();
539539
}
540540

0 commit comments

Comments
 (0)