mirror of
https://git.jami.net/savoirfairelinux/jami-client-qt.git
synced 2025-08-04 23:05:48 +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,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)
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue