fix(ui): Chat commands popup hide on second click
Partially fixes #3558.
This commit is contained in:
parent
b8d4192c02
commit
5b63bc14bc
|
@ -11,6 +11,7 @@ Popup {
|
|||
height: buttonRow.height
|
||||
padding: 0
|
||||
margins: 0
|
||||
closePolicy: Popup.CloseOnReleaseOutsideParent | Popup.CloseOnEscape
|
||||
|
||||
signal sendTransactionCommandButtonClicked()
|
||||
signal receiveTransactionCommandButtonClicked()
|
||||
|
|
|
@ -643,6 +643,9 @@ Rectangle {
|
|||
onClosed: {
|
||||
chatCommandsBtn.highlighted = false
|
||||
}
|
||||
onOpened: {
|
||||
chatCommandsBtn.highlighted = true
|
||||
}
|
||||
}
|
||||
|
||||
StatusGifPopup {
|
||||
|
@ -705,8 +708,9 @@ Rectangle {
|
|||
visible: !isEdit && control.chatType === Constants.chatTypeOneToOne && !control.isStatusUpdateInput
|
||||
enabled: !control.isContactBlocked
|
||||
onClicked: {
|
||||
highlighted = true
|
||||
chatCommandsPopup.open()
|
||||
chatCommandsPopup.opened ?
|
||||
chatCommandsPopup.close() :
|
||||
chatCommandsPopup.open()
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue