diff --git a/SoundSwitch/Framework/Configuration/SoundSwitchConfiguration.cs b/SoundSwitch/Framework/Configuration/SoundSwitchConfiguration.cs index 5b92d29b9c..22ced56a75 100644 --- a/SoundSwitch/Framework/Configuration/SoundSwitchConfiguration.cs +++ b/SoundSwitch/Framework/Configuration/SoundSwitchConfiguration.cs @@ -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 }