Merge pull request #8553 from Ultimaker/CURA-7501_no_double_adding_extruders

Prevent duplicate adding of extruders
This commit is contained in:
Konstantinos Karmas 2020-10-26 17:02:51 +01:00 committed by GitHub
commit 4804072625
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -336,7 +336,8 @@ class MachineManager(QObject):
return # We're done here
self._global_container_stack = global_stack
extruder_manager.addMachineExtruders(global_stack)
if not global_stack.extruderList: # First time we're activating this, there are no extruders yet.
extruder_manager.addMachineExtruders(global_stack)
self._application.setGlobalContainerStack(global_stack)
# Switch to the first enabled extruder