mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-12 14:19:00 +08: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
@ -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…
x
Reference in New Issue
Block a user