Skip to content

Commit

Permalink
A minor correction
Browse files Browse the repository at this point in the history
  • Loading branch information
qwersyk authored Jan 24, 2025
1 parent 5e876a0 commit f8fbbb8
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/window.py
Original file line number Diff line number Diff line change
Expand Up @@ -929,13 +929,16 @@ def generate_chat_name(self, button, multithreading=False):

def new_chat(self, button, *a):
self.chats.append({"name": _("Chat ") + str(len(self.chats) + 1), "chat": []})
if not self.status:
self.stop_chat()
self.stream_number_variable += 1
self.chat_id = len(self.chats) - 1
self.chat = self.chats[self.chat_id]["chat"]
self.update_history()
self.show_chat()
self.stream_number_variable += 1
GLib.idle_add(self.update_button_text)


def copy_chat(self, button, *a):
self.chats.append(
{"name": self.chats[int(button.get_name())]["name"], "chat": self.chats[int(button.get_name())]["chat"][:]})
Expand Down

0 comments on commit f8fbbb8

Please sign in to comment.