From 64359e68e61f601fceac5f9b469719278eebcde9 Mon Sep 17 00:00:00 2001 From: AT Date: Mon, 8 Jul 2024 17:04:35 -0400 Subject: [PATCH] ChatView: fix property binding loop warning (#2601) Signed-off-by: Adam Treat --- gpt4all-chat/qml/ChatView.qml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/gpt4all-chat/qml/ChatView.qml b/gpt4all-chat/qml/ChatView.qml index 38bac37c..f028bf9d 100644 --- a/gpt4all-chat/qml/ChatView.qml +++ b/gpt4all-chat/qml/ChatView.qml @@ -1170,7 +1170,7 @@ Rectangle { states: [ State { name: "expanded" - PropertyChanges { target: sourcesLayout; Layout.preferredHeight: childrenRect.height } + PropertyChanges { target: sourcesLayout; Layout.preferredHeight: flow.height } }, State { name: "collapsed" @@ -1192,6 +1192,7 @@ Rectangle { ] Flow { + id: flow Layout.fillWidth: true spacing: 10 visible: consolidatedSources.length !== 0