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:
commit
3942ea68a8
1 changed files with 3 additions and 0 deletions
|
@ -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]);
|
||||
|
|
Loading…
Reference in a new issue