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

@ -16,6 +16,7 @@ Item
property color materialColor property color materialColor
property alias textColor: extruderNumberText.color property alias textColor: extruderNumberText.color
property bool extruderEnabled: true property bool extruderEnabled: true
UM.RecolorImage UM.RecolorImage
{ {
id: mainIcon id: mainIcon

View file

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