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

This commit is contained in:
alfrix 2023-12-09 12:06:28 -03:00
parent a79016ae6e
commit 1f43391b2c

View File

@ -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 = [