mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-14 01:15:51 +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 {}
|
background: Item {}
|
||||||
|
|
||||||
onClicked: popup.open()
|
onClicked: popup.opened ? popup.close() : popup.open()
|
||||||
|
|
||||||
Popup
|
Popup
|
||||||
{
|
{
|
||||||
@ -42,6 +42,8 @@ Button
|
|||||||
y: parent.height + UM.Theme.getSize("default_arrow").height
|
y: parent.height + UM.Theme.getSize("default_arrow").height
|
||||||
x: (parent.width - width)
|
x: (parent.width - width)
|
||||||
|
|
||||||
|
closePolicy: Popup.CloseOnEscape | Popup.CloseOnPressOutsideParent
|
||||||
|
|
||||||
contentItem: AccountDetails
|
contentItem: AccountDetails
|
||||||
{
|
{
|
||||||
id: panel
|
id: panel
|
||||||
|
Loading…
x
Reference in New Issue
Block a user