1
0
mirror of https://github.com/godotengine/godot.git synced 2025-12-31 18:41:20 +00:00

[FileDialog] Use base dir instead of ".." when going up.

This commit is contained in:
Pāvels Nadtočajevs
2025-12-04 21:12:20 +02:00
parent 63e14e13f9
commit ccd84d79a7

View File

@@ -534,7 +534,7 @@ bool FileDialog::_is_open_should_be_disabled() {
}
void FileDialog::_go_up() {
_change_dir("..");
_change_dir(get_current_dir().trim_suffix("/").get_base_dir());
_push_history();
}