mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-13 09:47:50 -06:00
Remove code duplication in createAbstractMachine
This also caused a crash when an abstract machine with multiple extruders was selected CURA-8463
This commit is contained in:
parent
46532828a4
commit
506f2b9820
3 changed files with 18 additions and 33 deletions
|
@ -81,7 +81,8 @@ class MachineListModel(ListModel):
|
|||
for stack in online_machine_stacks:
|
||||
self.addItem(stack)
|
||||
# Remove this machine from the other stack list
|
||||
other_machine_stacks.remove(stack)
|
||||
if stack in other_machine_stacks:
|
||||
other_machine_stacks.remove(stack)
|
||||
|
||||
for stack in other_machine_stacks:
|
||||
self.addItem(stack)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue