You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2026-01-05 19:31:35 +00:00
Merge pull request #94015 from Grublady/strip_slash
Ignore trailing slashes in new project’s path when disabling Create Folder
This commit is contained in:
@@ -315,6 +315,8 @@ void ProjectDialog::_create_dir_toggled(bool p_pressed) {
|
||||
target_path = target_path.path_join(last_custom_target_dir);
|
||||
}
|
||||
} else {
|
||||
// Strip any trailing slash.
|
||||
target_path = target_path.rstrip("/\\");
|
||||
// Save and remove target dir name.
|
||||
if (target_path.get_file() == auto_dir) {
|
||||
last_custom_target_dir = "";
|
||||
|
||||
Reference in New Issue
Block a user