Fix Remove Missing Project projects on Windows

This commit is contained in:
qarmin 2019-05-01 14:36:04 +02:00
parent 3cfab06080
commit d9eaa3e093

View file

@ -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());