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:
Lukáš Tinkl 2023-04-17 10:29:20 +02:00 committed by Lukáš Tinkl
parent 81f97157e6
commit 1a81508b5d
1 changed files with 9 additions and 4 deletions

View File

@ -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