[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
No known key found for this signature in database
GPG key ID: 8413210218EF35D2

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();
}