Show details in the Connection pane ordered as in the Settings dialog

Return the Serial Port and the Baudrate lists without sorting them.
This commit is contained in:
Daniele Forsi committed 2018-04-23 16:05:47 +02:00
1 parent bf3da2a662
commit 536f5458bb
1 file changed
+2 -2
+2 -2
View File
@@ -78,8 +78,8 @@ def _get_options():
default_profile = printerProfileManager.get_default()
options = dict(
ports=sorted(connection_options["ports"]),
baudrates=sorted(connection_options["baudrates"], reverse=True),
ports=connection_options["ports"],
baudrates=connection_options["baudrates"],
printerProfiles=[dict(id=printer_profile["id"], name=printer_profile["name"] if "name" in printer_profile else printer_profile["id"]) for printer_profile in profile_options.values() if "id" in printer_profile],
portPreference=connection_options["portPreference"],
baudratePreference=connection_options["baudratePreference"],