mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-14 21:05:55 +08:00
Tool panel switching now properly triggers focus change
CURA-2197
This commit is contained in:
parent
68cfdfbe70
commit
442fd3ae3d
@ -48,7 +48,15 @@ Item {
|
|||||||
MouseArea {
|
MouseArea {
|
||||||
anchors.fill: parent;
|
anchors.fill: parent;
|
||||||
onClicked: {
|
onClicked: {
|
||||||
parent.checked ? UM.Controller.setActiveTool(null) : UM.Controller.setActiveTool(model.id);
|
forceActiveFocus() //First grab focus, so all the text fields are updated
|
||||||
|
if(parent.checked)
|
||||||
|
{
|
||||||
|
UM.Controller.setActiveTool(null)
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
UM.Controller.setActiveTool(model.id);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user