diff options
author | RĂ©mi Verschelde <rverschelde@gmail.com> | 2019-05-01 15:08:47 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-05-01 15:08:47 +0200 |
commit | 5254353ea80d74ea0332a820d878d78037f7e85f (patch) | |
tree | 138d672be670c73b3809df50b296b68063a3f961 /editor/project_manager.cpp | |
parent | 2f74e6b854b101bfa3e07dcc2e50a93098d2a132 (diff) | |
parent | d9eaa3e09307f30aa0f8d1eec2919e277b840a16 (diff) |
Merge pull request #28567 from qarmin/fix_remove_missing_projects
Fix Remove Missing Projects on Windows
Diffstat (limited to 'editor/project_manager.cpp')
-rw-r--r-- | editor/project_manager.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/editor/project_manager.cpp b/editor/project_manager.cpp index 709c2caa96..6de4330493 100644 --- a/editor/project_manager.cpp +++ b/editor/project_manager.cpp @@ -997,7 +997,7 @@ void ProjectManager::_update_project_buttons() { } } for (Map<String, String>::Element *E = list_all_projects.front(); E; E = E->next()) { - String project_name = E->key().replace("::", "/") + "/project.godot"; + String project_name = E->key().replace(":::", ":/").replace("::", "/") + "/project.godot"; if (!FileAccess::exists(project_name)) { missing_projects = true; break; @@ -1735,7 +1735,7 @@ void ProjectManager::_erase_missing_projects_confirm() { int deleted_projects = 0; int remaining_projects = 0; for (Map<String, String>::Element *E = list_all_projects.front(); E; E = E->next()) { - String project_name = E->key().replace("::", "/") + "/project.godot"; + String project_name = E->key().replace(":::", ":/").replace("::", "/") + "/project.godot"; if (!FileAccess::exists(project_name)) { deleted_projects++; EditorSettings::get_singleton()->erase("projects/" + E->key()); |