Skip to content

Commit

Permalink
feat(Device::Matching): Use the Name to match device when id is diffe…
Browse files Browse the repository at this point in the history
…rent. Please rename your device if you have 2 with the same name.
  • Loading branch information
Belphemur committed Jul 25, 2021
1 parent be97b1b commit 0dd1ef2
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions SoundSwitch.Common/Framework/Audio/Device/DeviceInfo.cs
Expand Up @@ -90,6 +90,8 @@ public bool Equals(DeviceInfo other)
if (Type != other.Type) return false;
//Same Id, it's the same device
if (Id == other.Id) return true;
//Always match on NameClean when Id is different
//help recognizing the same device
return NameClean == other.NameClean;
}

Expand Down

0 comments on commit 0dd1ef2

Please sign in to comment.