mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-12-03 07:41:18 -07:00
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:
parent
4bdd5713f1
commit
6a520cad47
1 changed files with 3 additions and 2 deletions
|
|
@ -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 {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue