From 536f5458bbe4415d0f45177b54df9e7556023d8e Mon Sep 17 00:00:00 2001 From: Daniele Forsi Date: Sun, 22 Apr 2018 23:49:15 +0200 Subject: [PATCH] Show details in the Connection pane ordered as in the Settings dialog Return the Serial Port and the Baudrate lists without sorting them. --- src/octoprint/server/api/connection.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/octoprint/server/api/connection.py b/src/octoprint/server/api/connection.py index 3c78108a1..a78b4c0c7 100644 --- a/src/octoprint/server/api/connection.py +++ b/src/octoprint/server/api/connection.py @@ -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"],