From df0020e62c58b02a72a2f4c3d002ce4b94edf7b8 Mon Sep 17 00:00:00 2001 From: miruka Date: Sat, 30 Nov 2019 15:03:07 -0400 Subject: [PATCH] Fix EventImageTextBubble shown when no text --- src/qml/Chat/Timeline/EventImageTextBubble.qml | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/qml/Chat/Timeline/EventImageTextBubble.qml b/src/qml/Chat/Timeline/EventImageTextBubble.qml index f673b31f..a8887cd0 100644 --- a/src/qml/Chat/Timeline/EventImageTextBubble.qml +++ b/src/qml/Chat/Timeline/EventImageTextBubble.qml @@ -2,7 +2,7 @@ import QtQuick 2.12 import "../../Base" HLabel { - visible: Boolean(text) + id: bubble anchors.margins: theme.spacing / 4 topPadding: theme.spacing / 2 @@ -16,4 +16,11 @@ HLabel { color: Qt.hsla(0, 0, 0, 0.7) radius: theme.radius } + + Binding { + target: bubble + property: "visible" + value: false + when: ! Boolean(bubble.text) + } }