mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-09 07:56:22 -06:00
Sort "other printers" list
CURA-9687
This commit is contained in:
parent
c94ccf24ce
commit
2079bd5a6e
1 changed files with 1 additions and 0 deletions
|
@ -86,6 +86,7 @@ class MachineListModel(ListModel):
|
||||||
machines_manager = CuraApplication.getInstance().getMachineManager()
|
machines_manager = CuraApplication.getInstance().getMachineManager()
|
||||||
|
|
||||||
other_machine_stacks = CuraContainerRegistry.getInstance().findContainerStacks(type="machine")
|
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 = CuraContainerRegistry.getInstance().findContainerStacks(is_abstract_machine = "True")
|
||||||
abstract_machine_stacks.sort(key = lambda machine: machine.getName(), reverse = True)
|
abstract_machine_stacks.sort(key = lambda machine: machine.getName(), reverse = True)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue