From 0c28ec4041a1aee0e4ad8236e4845d1738496cf5 Mon Sep 17 00:00:00 2001 From: Nate Graham Date: Mon, 23 Nov 2020 10:51:08 -0700 Subject: [PATCH] Make emoji button checkable Since clicking on it both opens and closes the emoji panel, it's a natural fit for being checkable. --- imports/NeoChat/Component/ChatTextInput.qml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/imports/NeoChat/Component/ChatTextInput.qml b/imports/NeoChat/Component/ChatTextInput.qml index de4a08451..be576447c 100644 --- a/imports/NeoChat/Component/ChatTextInput.qml +++ b/imports/NeoChat/Component/ChatTextInput.qml @@ -376,7 +376,9 @@ ToolBar { icon.name: "preferences-desktop-emoticons" icon.color: "transparent" - onClicked: emojiPicker.visible = !emojiPicker.visible + checkable: true + checked: emojiPicker.visible + onToggled: emojiPicker.visible = !emojiPicker.visible ToolTip { text: i18n("Add an Emoji")