Skip to content

Commit d0cc0f5

Browse files
committed
Scroll to bottom of chat history after loading messages
1 parent b63fb68 commit d0cc0f5

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

qgitc/aichatwindow.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -642,6 +642,9 @@ def _loadChatHistory(self, chatHistory: AiChatHistory):
642642

643643
self._loadMessagesFromHistory(chatHistory.messages)
644644

645+
sb = self.messages.verticalScrollBar()
646+
sb.setValue(sb.maximum())
647+
645648
def _switchToModel(self, modelKey: str, modelId: str):
646649
"""Switch to the specified model"""
647650
# Find the correct model

0 commit comments

Comments
 (0)