Merge pull request #49604 from pfertyk/issue-49453-wrong-recent-directory-names

Remove trailing slash from recent dir if needed
This commit is contained in:
Rémi Verschelde 2021-06-15 14:58:05 +02:00 committed by GitHub
commit 3942ea68a8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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]);