mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-20 21:27:50 -06:00
Fixed signal routing when switching between different machines. CURA-2232
This commit is contained in:
parent
85d1fa8a39
commit
e66548099a
1 changed files with 5 additions and 7 deletions
|
@ -141,8 +141,7 @@ class ExtruderManager(QObject):
|
||||||
for extruder_train in extruder_trains:
|
for extruder_train in extruder_trains:
|
||||||
self._extruder_trains[machine_id][extruder_train.getMetaDataEntry("position")] = extruder_train
|
self._extruder_trains[machine_id][extruder_train.getMetaDataEntry("position")] = extruder_train
|
||||||
|
|
||||||
# Make sure the next stack is a stack that contains only the machine definition
|
# regardless of what the next stack is, we have to set it again, because of signal routing.
|
||||||
if not extruder_train.getNextStack():
|
|
||||||
extruder_train.setNextStack(UM.Application.getInstance().getGlobalContainerStack())
|
extruder_train.setNextStack(UM.Application.getInstance().getGlobalContainerStack())
|
||||||
changed = True
|
changed = True
|
||||||
if changed:
|
if changed:
|
||||||
|
@ -260,8 +259,7 @@ class ExtruderManager(QObject):
|
||||||
container_registry.addContainer(user_profile)
|
container_registry.addContainer(user_profile)
|
||||||
container_stack.addContainer(user_profile)
|
container_stack.addContainer(user_profile)
|
||||||
|
|
||||||
# Make sure the next stack is a stack that contains only the machine definition
|
# regardless of what the next stack is, we have to set it again, because of signal routing.
|
||||||
if not container_stack.getNextStack():
|
|
||||||
container_stack.setNextStack(UM.Application.getInstance().getGlobalContainerStack())
|
container_stack.setNextStack(UM.Application.getInstance().getGlobalContainerStack())
|
||||||
|
|
||||||
container_registry.addContainer(container_stack)
|
container_registry.addContainer(container_stack)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue