From 1f43391b2cbd55cc5551544c74b1bebd968ee53f Mon Sep 17 00:00:00 2001 From: alfrix Date: Sat, 9 Dec 2023 12:06:28 -0300 Subject: [PATCH] printer_select: do not sort, this allows the users to sort how they want by defining them in the config in the order they want --- ks_includes/config.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ks_includes/config.py b/ks_includes/config.py index 6dfd2b19..01c3c948 100644 --- a/ks_includes/config.py +++ b/ks_includes/config.py @@ -85,7 +85,7 @@ class KlipperScreenConfig: logging.exception(msg) self.errors.append(msg) - printers = sorted([i for i in self.config.sections() if i.startswith("printer ")]) + printers = [i for i in self.config.sections() if i.startswith("printer ")] if len(printers) == 0: printers.append("Printer Printer") self.printers = [