Skip to content

Commit

Permalink
Deduplicate ports on all platforms.
Browse files Browse the repository at this point in the history
  • Loading branch information
rdoursenaud committed Aug 17, 2022
1 parent 6c0751f commit f58891d
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/midiexplorer/gui/windows/conn.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,9 +91,7 @@ def _dedupe_port_names(names: list[str]) -> list[str]:
TODO: test more. May have adverse effects in the presence of multiple identical yet distinct devices.
"""
system = platform.system()
if system == 'Darwin' or system == 'Linux':
names = list(OrderedDict.fromkeys(names))
names = list(OrderedDict.fromkeys(names))
return names


Expand Down

0 comments on commit f58891d

Please sign in to comment.