Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/Ultimaker/Cura.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRemco Burema <r.burema@ultimaker.com>2022-10-12 17:14:32 +0300
committerRemco Burema <r.burema@ultimaker.com>2022-10-12 17:14:32 +0300
commitce6f7c20ca8ca91ec23eb3d80cb8ba4e47d5e450 (patch)
tree1505a9f3729d7e683d45b4bd2dfd94a604c46906
parentc625d35f335a3cf26940f4ac425f0ef9c36b6114 (diff)
Abstract printer types: Sort newer ones on top.
Partial (manual) revert of initial implementatio of CURA-9748 -- that first commit deleted the 'reverse = True' needed to make sure (read hack) the most recent abstract printer types on top, instead of the other way around.
-rw-r--r--cura/Machines/Models/MachineListModel.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/cura/Machines/Models/MachineListModel.py b/cura/Machines/Models/MachineListModel.py
index 7306a66740..24375b72ce 100644
--- a/cura/Machines/Models/MachineListModel.py
+++ b/cura/Machines/Models/MachineListModel.py
@@ -89,7 +89,7 @@ class MachineListModel(ListModel):
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().upper())
+ abstract_machine_stacks.sort(key = lambda machine: machine.getName().upper(), reverse = True)
for abstract_machine in abstract_machine_stacks:
definition_id = abstract_machine.definition.getId()
online_machine_stacks = machines_manager.getMachinesWithDefinition(definition_id, online_only = True)