Remove trailing slash from recent dir if needed

This commit is contained in:
Paweł Fertyk 2021-06-14 17:51:57 +02:00
parent 12e0f10c74
commit 709e71ae9c

View file

@ -294,6 +294,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]);