From a66c6d5f40dd461097ec427fa6bbae0c7592baca Mon Sep 17 00:00:00 2001 From: jeffser Date: Sat, 10 Aug 2024 20:37:51 -0600 Subject: [PATCH] Fixed nasty clear chat glitch --- src/window.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/window.py b/src/window.py index 335235a..3ace79e 100644 --- a/src/window.py +++ b/src/window.py @@ -1391,7 +1391,7 @@ Generate a title following these rules: def clear_chat(self): logger.info("Clearing chat") for widget in list(self.chat_container): self.chat_container.remove(widget) - self.chats["chats"][self.chats["selected_chat"]]["messages"] = [] + self.chats["chats"][self.chats["selected_chat"]]["messages"] = {} self.save_history() def delete_chat(self, chat_name):