Daniel Brötzmann pushed to branch mainwindow at gajim / gajim
Commits: 80604005 by wurstsalat at 2021-08-09T23:00:10+02:00 Show Forget Group Chat button only if it's bookmarked
- - - - - 12b031ee by wurstsalat at 2021-08-09T23:07:44+02:00 ChatList: Update group chat name after renaming
- - - - -
2 changed files:
- gajim/data/gui/groupchat_control.ui - gajim/gtk/chat_list.py
Changes:
===================================== gajim/data/gui/groupchat_control.ui ===================================== @@ -1077,9 +1077,8 @@ <child> <object class="GtkButton" id="remove_bookmark_button"> <property name="label" translatable="yes">_Forget Group Chat</property> - <property name="visible">True</property> <property name="can-focus">True</property> - <property name="receives-default">True</property> + <property name="no-show-all">True</property> <property name="tooltip-text" translatable="yes">Gajim will not try to join this group chat again</property> <property name="halign">start</property> <property name="valign">start</property>
===================================== gajim/gtk/chat_list.py ===================================== @@ -57,6 +57,7 @@ def __init__(self, workspace_id): self.register_events([ ('account-enabled', ged.GUI2, self._on_account_changed), ('account-disabled', ged.GUI2, self._on_account_changed), + ('bookmarks-received', ged.GUI1, self._on_bookmarks_received), ])
self.connect('destroy', self._on_destroy) @@ -290,6 +291,10 @@ def _on_account_changed(self, *args): for row in self.get_children(): row.update_account_identifier()
+ def _on_bookmarks_received(self, _event): + for row in self.get_children(): + row.update_name() +
class ChatRow(Gtk.ListBoxRow): def __init__(self, workspace_id, account, jid, type_, pinned):
View it on GitLab: https://dev.gajim.org/gajim/gajim/-/compare/4a3dbf1317c653a990fbba59f0871567...