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

@ -164,8 +164,12 @@ Column
onClicked: {
switch (mouse.button) {
case Qt.LeftButton:
forceActiveFocus(); // Changing focus applies the currently-being-typed values so it can change the displayed setting values.
Cura.ExtruderManager.setActiveExtruderIndex(index);
extruder_enabled = Cura.MachineManager.getExtruder(model.index).isEnabled
if (extruder_enabled)
{
forceActiveFocus(); // Changing focus applies the currently-being-typed values so it can change the displayed setting values.
Cura.ExtruderManager.setActiveExtruderIndex(index);
}
break;
case Qt.RightButton:
extruder_enabled = Cura.MachineManager.getExtruder(model.index).isEnabled