mirror of
https://github.com/godotengine/godot.git
synced 2025-01-24 11:32:51 -05:00
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()) {
|
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)) {
|
if (!FileAccess::exists(project_name)) {
|
||||||
missing_projects = true;
|
missing_projects = true;
|
||||||
break;
|
break;
|
||||||
|
@ -1735,7 +1735,7 @@ void ProjectManager::_erase_missing_projects_confirm() {
|
||||||
int deleted_projects = 0;
|
int deleted_projects = 0;
|
||||||
int remaining_projects = 0;
|
int remaining_projects = 0;
|
||||||
for (Map<String, String>::Element *E = list_all_projects.front(); E; E = E->next()) {
|
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)) {
|
if (!FileAccess::exists(project_name)) {
|
||||||
deleted_projects++;
|
deleted_projects++;
|
||||||
EditorSettings::get_singleton()->erase("projects/" + E->key());
|
EditorSettings::get_singleton()->erase("projects/" + E->key());
|
||||||
|
|
Loading…
Add table
Reference in a new issue