mirror of
https://git.jami.net/savoirfairelinux/jami-client-qt.git
synced 2025-08-04 06:45:45 +02:00
EmojiPicker: close popup when repress the button
Fixing issues where clicking a second time on the emoji button open a second popup instead of closing the first one GitLab: #1249 Change-Id: I76f0094c4024ae27f260e6aeba93522d3709feef
This commit is contained in:
parent
5582d39a3f
commit
f903c635a7
1 changed files with 7 additions and 4 deletions
|
@ -170,7 +170,11 @@ Rectangle {
|
|||
sendButtonVisibility: text || dataTransferSendContainer.filesToSendCount
|
||||
|
||||
onEmojiButtonClicked: {
|
||||
openEmojiPicker();
|
||||
if (emojiPicker != null && emojiPicker.opened) {
|
||||
emojiPicker.closeEmojiPicker();
|
||||
} else {
|
||||
openEmojiPicker();
|
||||
}
|
||||
}
|
||||
|
||||
onShowMapClicked: {
|
||||
|
@ -222,9 +226,8 @@ Rectangle {
|
|||
if (keyEvent.key === Qt.Key_Escape) {
|
||||
if (recordBox != null && recordBox.opened) {
|
||||
recordBox.closeRecorder();
|
||||
}
|
||||
else if (PositionManager.isMapActive(CurrentAccount.id)){
|
||||
PositionManager.setMapInactive(CurrentAccount.id)
|
||||
} else if (PositionManager.isMapActive(CurrentAccount.id)) {
|
||||
PositionManager.setMapInactive(CurrentAccount.id);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue