Skip to content

Commit

Permalink
boost(Configuration): Cleanup configuration of any duplicated device …
Browse files Browse the repository at this point in the history
…by name clean

Only need to do this once, after that we do support that use case

Fixes #943
  • Loading branch information
Belphemur committed Jun 26, 2022
1 parent 2249ed0 commit 3826e9b
Showing 1 changed file with 7 additions and 0 deletions.
Expand Up @@ -209,6 +209,13 @@ public bool Migrate()
migrated = true;
}

if (!MigratedFields.Contains("CleanupSelectedDevices"))
{
SelectedDevices = SelectedDevices.DistinctBy(info => info.NameClean).ToHashSet();
MigratedFields.Add("CleanupSelectedDevices");
migrated = true;
}

return migrated;
#pragma warning restore 612
}
Expand Down

0 comments on commit 3826e9b

Please sign in to comment.