1
0
Fork 0
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:
lcoursodon 2023-07-06 10:43:35 -04:00 committed by Sébastien Blin
parent 5582d39a3f
commit f903c635a7

View file

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