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