mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-11 04:09:01 +08: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
@ -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…
x
Reference in New Issue
Block a user