Change the behaviour of the Popup, that now closes when clicking the

widget if it is open.

Contributes to CURA-5784.
This commit is contained in:
Diego Prado Gesto 2018-10-18 09:51:42 +02:00
parent 54554bff89
commit 11693aad36

View File

@ -33,7 +33,7 @@ Button
background: Item {}
onClicked: popup.open()
onClicked: popup.opened ? popup.close() : popup.open()
Popup
{
@ -42,6 +42,8 @@ Button
y: parent.height + UM.Theme.getSize("default_arrow").height
x: (parent.width - width)
closePolicy: Popup.CloseOnEscape | Popup.CloseOnPressOutsideParent
contentItem: AccountDetails
{
id: panel