From 82605c50c421794d12328f3999ca2d993189ccf2 Mon Sep 17 00:00:00 2001 From: Armored Dragon Date: Sun, 26 May 2024 20:30:33 -0500 Subject: [PATCH] Scroll to bottom on launch. Signed-off-by: Armored Dragon --- .../communityScripts/armored-chat/armored_chat.qml | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/scripts/communityScripts/armored-chat/armored_chat.qml b/scripts/communityScripts/armored-chat/armored_chat.qml index 51ee44297e..37dd760360 100644 --- a/scripts/communityScripts/armored-chat/armored_chat.qml +++ b/scripts/communityScripts/armored-chat/armored_chat.qml @@ -20,11 +20,20 @@ Rectangle { running: true repeat: false onTriggered: { - toScript({type: "initialized"}) + toScript({type: "initialized"}); + } + } + Timer { + id: load_scroll_timer + interval: 1000 + running: true + repeat: false + onTriggered: { + scrollToBottom(); } } // Component.onCompleted: { - // toScript({type: "initialized"}) + // toScript({type: "initialized"}); // } // User view