mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-11-25 11:51:41 -07:00
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:
parent
54554bff89
commit
11693aad36
1 changed files with 3 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue