mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-15 10:47:49 -06:00
Switch to the first enabled extruder after setActiveMachine
CURA-5930
This commit is contained in:
parent
6892307be3
commit
3adf7d49d0
1 changed files with 5 additions and 1 deletions
|
@ -362,7 +362,6 @@ class MachineManager(QObject):
|
||||||
# Mark global stack as invalid
|
# Mark global stack as invalid
|
||||||
ConfigurationErrorMessage.getInstance().addFaultyContainers(global_stack.getId())
|
ConfigurationErrorMessage.getInstance().addFaultyContainers(global_stack.getId())
|
||||||
return # We're done here
|
return # We're done here
|
||||||
ExtruderManager.getInstance().setActiveExtruderIndex(0) # Switch to first extruder
|
|
||||||
|
|
||||||
self._global_container_stack = global_stack
|
self._global_container_stack = global_stack
|
||||||
self._application.setGlobalContainerStack(global_stack)
|
self._application.setGlobalContainerStack(global_stack)
|
||||||
|
@ -370,6 +369,11 @@ class MachineManager(QObject):
|
||||||
self._initMachineState(global_stack)
|
self._initMachineState(global_stack)
|
||||||
self._onGlobalContainerChanged()
|
self._onGlobalContainerChanged()
|
||||||
|
|
||||||
|
# Switch to the first enabled extruder
|
||||||
|
self.updateDefaultExtruder()
|
||||||
|
default_extruder_position = int(self.defaultExtruderPosition)
|
||||||
|
ExtruderManager.getInstance().setActiveExtruderIndex(default_extruder_position)
|
||||||
|
|
||||||
self.__emitChangedSignals()
|
self.__emitChangedSignals()
|
||||||
|
|
||||||
## Given a definition id, return the machine with this id.
|
## Given a definition id, return the machine with this id.
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue