From 7bd181085250ca0f23827885fb3b9f458ae3ad9f Mon Sep 17 00:00:00 2001 From: Gwendolyn Page Date: Thu, 9 Oct 2025 13:54:49 -0500 Subject: [PATCH] add Qt.callLater() around function calls to prevent leak --- .config/quickshell/ii/modules/sidebarLeft/AiChat.qml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.config/quickshell/ii/modules/sidebarLeft/AiChat.qml b/.config/quickshell/ii/modules/sidebarLeft/AiChat.qml index 29411b7ae..4e195575b 100644 --- a/.config/quickshell/ii/modules/sidebarLeft/AiChat.qml +++ b/.config/quickshell/ii/modules/sidebarLeft/AiChat.qml @@ -336,10 +336,10 @@ Inline w/ backslash and round brackets \\(e^{i\\pi} + 1 = 0\\) property int lastResponseLength: 0 onContentHeightChanged: { - if (atYEnd) positionViewAtEnd(); + if (atYEnd) Qt.callLater(positionViewAtEnd); } onCountChanged: { // Auto-scroll when new messages are added - if (atYEnd) positionViewAtEnd(); + if (atYEnd) Qt.callLater(positionViewAtEnd); } add: null // Prevent function calls from being janky @@ -778,4 +778,4 @@ Inline w/ backslash and round brackets \\(e^{i\\pi} + 1 = 0\\) } -} \ No newline at end of file +}