mirror of
https://github.com/status-im/status-desktop.git
synced 2025-01-10 22:36:24 +00:00
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()
|
activityCenterStore.markAsSeenActivityCenterNotifications()
|
||||||
}
|
}
|
||||||
|
|
||||||
x: Global.applicationWindow.width - root.width - Style.current.halfPadding
|
|
||||||
width: 560
|
width: 560
|
||||||
padding: 0
|
padding: 0
|
||||||
modal: false
|
modal: true
|
||||||
closePolicy: Popup.CloseOnEscape | Popup.CloseOnPressOutside
|
|
||||||
parent: Overlay.overlay
|
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 {
|
background: Rectangle {
|
||||||
color: Style.current.background
|
color: Style.current.background
|
||||||
|
Loading…
x
Reference in New Issue
Block a user