From a34196f2fa184755e0dc336341b8ed92e5d0a398 Mon Sep 17 00:00:00 2001 From: Lucas Fryzek Date: Wed, 15 Jan 2025 21:14:35 +0000 Subject: chat: Improve rendering of messages Reduces the slowdown from receiving lots of messages at once. TODO look to see if adding messages can be done without freezing the UI. --- src/main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/main.py') diff --git a/src/main.py b/src/main.py index a120031..ea387eb 100644 --- a/src/main.py +++ b/src/main.py @@ -320,7 +320,7 @@ class WeegtkApplication(Adw.Application): self.buffers[index].data['title'] = item['title'] ##self.pages[index].set_title(item['title']) elif message.msgid == '_buffer_cleared': - self.buffers[index].widget.chat.clear() + self.buffers[index].clear() elif message.msgid.startswith('_buffer_localvar_'): self.buffers[index].data['local_variables'] = \ item['local_variables'] -- cgit