Explorar o código

strip trailing slashes in default project path

Peter hai 9 meses
pai
achega
dd33e877aa
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  1. 1 0
      editor/project_manager/project_dialog.cpp

+ 1 - 0
editor/project_manager/project_dialog.cpp

@@ -758,6 +758,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);