Sort "other printers" list

CURA-9687
This commit is contained in:
c.lamboo 2022-10-05 13:26:12 +02:00
parent c94ccf24ce
commit 2079bd5a6e

View file

@ -86,6 +86,7 @@ class MachineListModel(ListModel):
machines_manager = CuraApplication.getInstance().getMachineManager()
other_machine_stacks = CuraContainerRegistry.getInstance().findContainerStacks(type="machine")
other_machine_stacks.sort(key = lambda machine: machine.getName().upper())
abstract_machine_stacks = CuraContainerRegistry.getInstance().findContainerStacks(is_abstract_machine = "True")
abstract_machine_stacks.sort(key = lambda machine: machine.getName(), reverse = True)