We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6163ea9 commit 83e6ccaCopy full SHA for 83e6cca
src/widgets/chat.py
@@ -441,12 +441,13 @@ def prompt_rename(self):
441
442
def delete(self):
443
self.chat.stop_message()
444
+ window = self.get_root()
445
list_box = self.get_parent()
446
list_box.remove(self)
447
self.chat.get_parent().remove(self.chat)
448
SQL.delete_chat(self.chat)
449
if len(list(list_box)) == 0:
- self.get_root().new_chat(chat_type='chat')
450
+ window.new_chat(chat_type='chat')
451
if not list_box.get_selected_row() or list_box.get_selected_row() == self:
452
list_box.select_row(list_box.get_row_at_index(0))
453
0 commit comments