Change focus upon extruder switch

This applies a setting that is currently being typed by the user. Otherwise it would take the currently being typed value along to the next tab, since it can't update a setting value while it is in focus.

Contributes to issues CURA-340 and CURA-1278.
This commit is contained in:
Ghostkeeper 2016-06-09 11:48:21 +02:00
parent 4bdd5713f1
commit 6a520cad47
No known key found for this signature in database
GPG Key ID: 701948C5954A7385

View File

@ -110,8 +110,9 @@ Item
checked: base.currentExtruderIndex == index checked: base.currentExtruderIndex == index
onClicked: onClicked:
{ {
base.currentExtruderIndex = index extruderSelection.focus = true; //Changing focus applies the currently-being-typed values so it can change the displayed setting values.
ExtruderManager.setActiveExtruderIndex(index) base.currentExtruderIndex = index;
ExtruderManager.setActiveExtruderIndex(index);
} }
style: ButtonStyle { style: ButtonStyle {