add Qt.callLater() around function calls to prevent leak

This commit is contained in:
Gwendolyn Page
2025-10-09 13:54:49 -05:00
parent 433fe1449a
commit 7bd1810852
@@ -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\\)
}
}
}