mirror of
https://github.com/savoirfairelinux/jami-client-qt.git
synced 2026-01-04 02:52:52 +08: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:
committed by
Sébastien Blin
parent
5582d39a3f
commit
f903c635a7
@@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user