From f58891debaff39cc89dd6dd716fc2605d8f920e5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rapha=C3=ABl=20Doursenaud?= Date: Wed, 17 Aug 2022 10:04:23 +0200 Subject: [PATCH] Deduplicate ports on all platforms. --- src/midiexplorer/gui/windows/conn.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/midiexplorer/gui/windows/conn.py b/src/midiexplorer/gui/windows/conn.py index c8cab4b..1dc87c1 100644 --- a/src/midiexplorer/gui/windows/conn.py +++ b/src/midiexplorer/gui/windows/conn.py @@ -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