1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-07 12:30:27 +00:00

Merge pull request #99776 from peterdang1502/default-project-path-trailing-slash

Strip any trailing slashes when reading the default project path
This commit is contained in:
Thaddeus Crews
2024-12-03 14:40:54 -06:00

View File

@@ -760,6 +760,7 @@ void ProjectDialog::show_dialog(bool p_reset_name) {
project_path->set_editable(true);
String fav_dir = EDITOR_GET("filesystem/directories/default_project_path");
fav_dir = fav_dir.simplify_path();
if (!fav_dir.is_empty()) {
project_path->set_text(fav_dir);
install_path->set_text(fav_dir);