1
0
Fork 0
mirror of https://git.jami.net/savoirfairelinux/jami-client-qt.git synced 2025-08-05 15:25:51 +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:
lcoursodon 2023-07-06 10:43:35 -04:00 committed by Sébastien Blin
parent 5582d39a3f
commit f903c635a7

View file

@ -170,8 +170,12 @@ Rectangle {
sendButtonVisibility: text || dataTransferSendContainer.filesToSendCount sendButtonVisibility: text || dataTransferSendContainer.filesToSendCount
onEmojiButtonClicked: { onEmojiButtonClicked: {
if (emojiPicker != null && emojiPicker.opened) {
emojiPicker.closeEmojiPicker();
} else {
openEmojiPicker(); openEmojiPicker();
} }
}
onShowMapClicked: { onShowMapClicked: {
PositionManager.setMapActive(CurrentAccount.id); PositionManager.setMapActive(CurrentAccount.id);
@ -222,9 +226,8 @@ Rectangle {
if (keyEvent.key === Qt.Key_Escape) { if (keyEvent.key === Qt.Key_Escape) {
if (recordBox != null && recordBox.opened) { if (recordBox != null && recordBox.opened) {
recordBox.closeRecorder(); recordBox.closeRecorder();
} } else if (PositionManager.isMapActive(CurrentAccount.id)) {
else if (PositionManager.isMapActive(CurrentAccount.id)){ PositionManager.setMapInactive(CurrentAccount.id);
PositionManager.setMapInactive(CurrentAccount.id)
} }
} }
} }