mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-12 01:07:52 -06:00
CURA-4606 switch to first extruder when switching machines; this prevents crashing when switching to single extruder machine
This commit is contained in:
parent
788e4a1c8e
commit
5ba0ac8a43
1 changed files with 1 additions and 0 deletions
|
@ -308,6 +308,7 @@ class MachineManager(QObject):
|
|||
containers = container_registry.findContainerStacks(id = stack_id)
|
||||
if containers:
|
||||
global_stack = containers[0]
|
||||
ExtruderManager.getInstance().setActiveExtruderIndex(0) # Switch to first extruder
|
||||
Application.getInstance().setGlobalContainerStack(global_stack)
|
||||
self._global_container_stack = global_stack
|
||||
self.globalContainerChanged.emit()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue