Skip to content

Commit

Permalink
print each migrated project path instead of always printing "migratin…
Browse files Browse the repository at this point in the history
…g" when there are none
  • Loading branch information
Nathan Franke committed Nov 30, 2022
1 parent 5826e96 commit 4581662
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion editor/project_manager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand All @@ -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);
Expand Down

0 comments on commit 4581662

Please sign in to comment.