fix(ActivityCenterPopup): close the AC popup a second time the button is clicked
the Popup has to be modal and the overlay should catch/eat all the mouse events to prevent them from propagating to the contents behind the popup Fixes #9838
This commit is contained in:
parent
81f97157e6
commit
1a81508b5d
|
@ -29,14 +29,19 @@ Popup {
|
|||
activityCenterStore.markAsSeenActivityCenterNotifications()
|
||||
}
|
||||
|
||||
x: Global.applicationWindow.width - root.width - Style.current.halfPadding
|
||||
width: 560
|
||||
padding: 0
|
||||
modal: false
|
||||
closePolicy: Popup.CloseOnEscape | Popup.CloseOnPressOutside
|
||||
modal: true
|
||||
parent: Overlay.overlay
|
||||
|
||||
Overlay.modeless: null
|
||||
Overlay.modal: MouseArea { // eat every event behind the popup
|
||||
hoverEnabled: true
|
||||
onPressed: (event) => {
|
||||
event.accept()
|
||||
root.close()
|
||||
}
|
||||
onWheel: (event) => event.accept()
|
||||
}
|
||||
|
||||
background: Rectangle {
|
||||
color: Style.current.background
|
||||
|
|
Loading…
Reference in New Issue