Merge pull request #65759 from nathanfranke/migrate-project-manager
Print each migrated project path instead of always printing "migrating" when there are none
This commit is contained in:
commit
65692ce91c
1 changed files with 2 additions and 1 deletions
|
@ -1253,7 +1253,6 @@ void ProjectList::migrate_config() {
|
|||
if (FileAccess::exists(_config_path)) {
|
||||
return;
|
||||
}
|
||||
print_line("Migrating legacy project list");
|
||||
|
||||
List<PropertyInfo> properties;
|
||||
EditorSettings::get_singleton()->get_property_list(&properties);
|
||||
|
@ -1266,6 +1265,8 @@ void ProjectList::migrate_config() {
|
|||
}
|
||||
|
||||
String path = EDITOR_GET(property_key);
|
||||
print_line("Migrating legacy project '" + path + "'.");
|
||||
|
||||
String favoriteKey = "favorite_projects/" + property_key.get_slice("/", 1);
|
||||
bool favorite = EditorSettings::get_singleton()->has_setting(favoriteKey);
|
||||
add_project(path, favorite);
|
||||
|
|
Loading…
Reference in a new issue