Close the popup panel when the user clicks in some of the buttons in the

printer selector.

Contributes to CURA-5942.
This commit is contained in:
Diego Prado Gesto 2018-11-22 10:54:25 +01:00
parent 3434b30ee0
commit b890e40e81
2 changed files with 11 additions and 2 deletions

View file

@ -184,7 +184,11 @@ Cura.ExpandableComponent
hoverColor: UM.Theme.getColor("secondary")
textColor: UM.Theme.getColor("primary")
textHoverColor: UM.Theme.getColor("text")
onClicked: Cura.Actions.addMachine.trigger()
onClicked:
{
togglePopup()
Cura.Actions.addMachine.trigger()
}
}
Cura.ActionButton
@ -196,7 +200,11 @@ Cura.ExpandableComponent
hoverColor: UM.Theme.getColor("secondary")
textColor: UM.Theme.getColor("primary")
textHoverColor: UM.Theme.getColor("text")
onClicked: Cura.Actions.configureMachines.trigger()
onClicked:
{
togglePopup()
Cura.Actions.configureMachines.trigger()
}
}
}
}