You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-16 14:00:40 +00:00
Remove trailing slash from recent dir if needed
(cherry picked from commit 709e71ae9c)
This commit is contained in:
committed by
Rémi Verschelde
parent
87883f8b0d
commit
f36a3c67e3
@@ -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]);
|
||||
|
||||
Reference in New Issue
Block a user