fix(ui): Chat commands popup hide on second click

Partially fixes #3558.
This commit is contained in:
Eric Mastro 2021-09-27 20:31:40 +10:00 committed by Iuri Matias
parent b8d4192c02
commit 5b63bc14bc
2 changed files with 7 additions and 2 deletions

View File

@ -11,6 +11,7 @@ Popup {
height: buttonRow.height
padding: 0
margins: 0
closePolicy: Popup.CloseOnReleaseOutsideParent | Popup.CloseOnEscape
signal sendTransactionCommandButtonClicked()
signal receiveTransactionCommandButtonClicked()

View File

@ -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()
}
}