When the extruder is being disabled and it is the currently selected

one, then switch to the default extruder. Also do not allow users to
click in a disabled extruder, only if they want to enable it again.
This commit is contained in:
Diego Prado Gesto 2018-07-16 16:26:55 +02:00
parent 5ba3beb104
commit 51c499b08c
2 changed files with 11 additions and 2 deletions

View file

@ -985,6 +985,11 @@ class MachineManager(QObject):
self.updateDefaultExtruder()
self.updateNumberExtrudersEnabled()
self.correctExtruderSettings()
# In case this extruder is being disabled and it's the currently selected one, switch to the default extruder
if not enabled and position == ExtruderManager.getInstance().activeExtruderIndex:
ExtruderManager.getInstance().setActiveExtruderIndex(int(self._default_extruder_position))
# ensure that the quality profile is compatible with current combination, or choose a compatible one if available
self._updateQualityWithMaterial()
self.extruderChanged.emit()