From 8741e5f36a0bb2619fca3aa1edc8bfecdcb836b0 Mon Sep 17 00:00:00 2001 From: Lurkki14 <44469719+Lurkki14@users.noreply.github.com> Date: Fri, 18 Sep 2020 14:55:48 +0300 Subject: [PATCH] Set typing Rectangle color directly instead of Connection Co-authored-by: DeepBlueV7.X --- resources/qml/TimelineView.qml | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/resources/qml/TimelineView.qml b/resources/qml/TimelineView.qml index 7c74794b..15a3bf04 100644 --- a/resources/qml/TimelineView.qml +++ b/resources/qml/TimelineView.qml @@ -436,20 +436,11 @@ Page { anchors.right: parent.right Rectangle { id: typingRect - Connections { - target: chat.model - onTypingUsersChanged: { - if (chat.model && chat.model.typingUsers < 1) - typingRect.color = "transparent" - else - typingRect.color = colors.window - } - } anchors.left: parent.left anchors.right: parent.right anchors.leftMargin: 10 anchors.rightMargin: 10 - color: "transparent" + color: (chat.model && chat.model.typingUsers.length > 0) ? colors.window : "transparent" height: fontMetrics.height + 10 Label { id: typingDisplay