Daniel Brötzmann pushed to branch mainwindow at gajim / gajim
Commits: 206c9c2a by wurstsalat at 2021-10-26T00:22:39+02:00 Main: Use first workspace for adding chat if nothing selected
- - - - - 6c9ef27c by wurstsalat at 2021-10-26T00:23:53+02:00 JumpToEndButton: Don't show_all when restoring window
- - - - - bea23cc5 by wurstsalat at 2021-10-26T00:24:34+02:00 GroupchatState: Don't show_all when restoring window
- - - - -
3 changed files:
- gajim/gtk/conversation/jump_to_end_button.py - gajim/gtk/groupchat_state.py - gajim/gtk/main.py
Changes:
===================================== gajim/gtk/conversation/jump_to_end_button.py ===================================== @@ -57,13 +57,14 @@ def __init__(self): self.show_all()
self._count = 0 + self.set_no_show_all(True)
def _on_jump_clicked(self, _button): self.emit('clicked')
def toggle(self, visible): if visible: - self.show_all() + self.show() else: self.hide() self.reset_unread_count()
===================================== gajim/gtk/groupchat_state.py ===================================== @@ -48,6 +48,7 @@ def set_joining(self):
def set_joined(self): self.hide() + self.set_no_show_all(True)
def set_not_joined(self): self._ui.groupchat_state.set_visible_child_name('not-joining')
===================================== gajim/gtk/main.py ===================================== @@ -396,6 +396,8 @@ def _add_chat(self, _action, param):
def add_chat(self, account, jid, type_, select=False): workspace_id = self.get_active_workspace() + if workspace_id is None: + workspace_id = self._workspace_side_bar.get_first_workspace() self._chat_page.add_chat_for_workspace(workspace_id, account, jid,
View it on GitLab: https://dev.gajim.org/gajim/gajim/-/compare/26544cfb253a4213d817d233c8d26cb7...