diff --git a/src/window.py b/src/window.py index 124e4e4..c472e0a 100644 --- a/src/window.py +++ b/src/window.py @@ -1564,7 +1564,7 @@ Generate a title following these rules: chat_row = self.selected_chat_row chat_name = chat_row.get_child().get_name() action_name = action.get_name() - if action_name == 'delete_chat': + if action_name in ('delete_chat', 'delete_current_chat'): dialogs.delete_chat(self, chat_name) elif action_name in ('rename_chat', 'rename_current_chat'): dialogs.rename_chat(self, chat_name, chat_row.get_child()) @@ -1663,6 +1663,7 @@ Generate a title following these rules: self.get_application().create_action('create_model_from_file', lambda *_: dialogs.create_model_from_file(self)) self.get_application().create_action('create_model_from_name', lambda *_: dialogs.create_model_from_name(self)) self.get_application().create_action('delete_chat', self.chat_actions) + self.get_application().create_action('delete_current_chat', self.current_chat_actions) self.get_application().create_action('rename_chat', self.chat_actions) self.get_application().create_action('rename_current_chat', self.current_chat_actions) self.get_application().create_action('export_chat', self.chat_actions) diff --git a/src/window.ui b/src/window.ui index d2b4709..b655d26 100644 --- a/src/window.ui +++ b/src/window.ui @@ -1054,6 +1054,10 @@ By downloading any model you accept their license agreement available on the mod