diff --git a/src/window.py b/src/window.py index 9fe1ba1..4877394 100644 --- a/src/window.py +++ b/src/window.py @@ -940,6 +940,8 @@ class AlpacaWindow(Adw.ApplicationWindow): self.update_chat_list() if len(self.chats['chats'])==0: self.new_chat() + if self.chats['selected_chat'] == chat_name: + self.chat_list_box.select_row(self.chat_list_box.get_row_at_index(0)) def rename_chat(self, old_chat_name, new_chat_name, label_element): new_chat_name = self.generate_numbered_name(new_chat_name, self.chats["chats"].keys()) diff --git a/src/window.ui b/src/window.ui index c000243..1409a7f 100644 --- a/src/window.ui +++ b/src/window.ui @@ -79,7 +79,7 @@ sidebar-show-symbolic - Toggle Sidebar + Toggle sidebar @@ -117,7 +117,7 @@ False open-menu-symbolic - Chat Menu + Chat menu secondary_menu