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 +}