Fix Remove Missing Project projects on Windows
This commit is contained in:
parent
3cfab06080
commit
d9eaa3e093
1 changed files with 2 additions and 2 deletions
|
@ -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());
|
||||
|
|
Loading…
Reference in a new issue