mirror of
https://github.com/status-im/status-desktop.git
synced 2025-01-10 14:26:34 +00:00
fix(ui): new chat menu popup hide on second click
Partially fixes #3558.
This commit is contained in:
parent
b94b932572
commit
1ee3bba598
@ -91,7 +91,11 @@ Item {
|
||||
icon.name: "add"
|
||||
state: "default"
|
||||
|
||||
onClicked: chatContextMenu.popup(actionButton.width-chatContextMenu.width, actionButton.height + 4)
|
||||
onClicked: {
|
||||
chatContextMenu.opened ?
|
||||
chatContextMenu.close() :
|
||||
chatContextMenu.popup(actionButton.width-chatContextMenu.width, actionButton.height + 4)
|
||||
}
|
||||
states: [
|
||||
State {
|
||||
name: "default"
|
||||
@ -135,6 +139,7 @@ Item {
|
||||
|
||||
StatusPopupMenu {
|
||||
id: chatContextMenu
|
||||
closePolicy: Popup.Popup.CloseOnReleaseOutsideParent | Popup.CloseOnEscape
|
||||
|
||||
onOpened: {
|
||||
actionButton.state = "pressed"
|
||||
|
Loading…
x
Reference in New Issue
Block a user