From a75d7f00bc28dd52ed10ef380fe2dbccc55e5b0c Mon Sep 17 00:00:00 2001 From: Nicolas Werner Date: Sat, 16 May 2020 22:19:23 +0200 Subject: [PATCH] Fix reactions binding loop --- resources/qml/Reactions.qml | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/resources/qml/Reactions.qml b/resources/qml/Reactions.qml index cb15b723..ac5efbd1 100644 --- a/resources/qml/Reactions.qml +++ b/resources/qml/Reactions.qml @@ -13,7 +13,6 @@ Flow { AbstractButton { id: reaction - text: model.key hoverEnabled: true implicitWidth: contentItem.childrenRect.width + contentItem.leftPadding*2 implicitHeight: contentItem.childrenRect.height @@ -33,13 +32,13 @@ Flow { font.family: settings.emoji_font_family elide: Text.ElideRight elideWidth: 150 - text: reaction.text + text: model.key } Text { anchors.baseline: reactionCounter.baseline id: reactionText - text: textMetrics.elidedText + (textMetrics.elidedText == textMetrics.text ? "" : "…") + text: textMetrics.elidedText + (textMetrics.elidedText == model.key ? "" : "…") font.family: settings.emoji_font_family color: reaction.hovered ? colors.highlight : colors.text maximumLineCount: 1