Make emoji button checkable

Since clicking on it both opens and closes the emoji panel, it's a
natural fit for being checkable.
This commit is contained in:
Nate Graham
2020-11-23 10:51:08 -07:00
committed by Carl Schwan
parent 9f734aa570
commit 0c28ec4041

View File

@@ -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")