mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-11-24 03:11:03 -07:00
Merge branch 'master' of github.com:Ultimaker/Cura
This commit is contained in:
commit
a8db414b2a
1 changed files with 9 additions and 1 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue