1
0
mirror of https://github.com/godotengine/godot.git synced 2026-01-05 19:31:35 +00:00

Remove trailing slash from recent dir if needed

(cherry picked from commit 709e71ae9c)
This commit is contained in:
Paweł Fertyk
2021-06-14 17:51:57 +02:00
committed by Rémi Verschelde
parent 2c64218415
commit 7520e57947

View File

@@ -275,6 +275,9 @@ void EditorFileDialog::_post_popup() {
if (res && name == "res://") {
name = "/";
} else {
if (name.ends_with("/")) {
name = name.substr(0, name.length() - 1);
}
name = name.get_file() + "/";
}
bool exists = dir_access->dir_exists(recentd[i]);