Use hide_groupchat_occupants_list option to decide if we show the occupant list or not. Fixes #8922
This commit is contained in:
parent
c40dfe3817
commit
14f3e041de
1 changed files with 4 additions and 5 deletions
|
@ -368,8 +368,6 @@ class GroupchatControl(ChatControlBase):
|
||||||
|
|
||||||
self.widget_set_visible(self.xml.get_object('banner_eventbox'),
|
self.widget_set_visible(self.xml.get_object('banner_eventbox'),
|
||||||
app.config.get('hide_groupchat_banner'))
|
app.config.get('hide_groupchat_banner'))
|
||||||
self.widget_set_visible(self.xml.get_object('list_scrolledwindow'),
|
|
||||||
app.config.get('hide_groupchat_occupants_list'))
|
|
||||||
|
|
||||||
self._last_selected_contact = None # None or holds jid, account tuple
|
self._last_selected_contact = None # None or holds jid, account tuple
|
||||||
|
|
||||||
|
@ -409,7 +407,8 @@ class GroupchatControl(ChatControlBase):
|
||||||
id_ = self.hpaned.connect('notify', self.on_hpaned_notify)
|
id_ = self.hpaned.connect('notify', self.on_hpaned_notify)
|
||||||
self.handlers[id_] = self.hpaned
|
self.handlers[id_] = self.hpaned
|
||||||
|
|
||||||
# Hide the Roster per default
|
if app.config.get('hide_groupchat_occupants_list'):
|
||||||
|
# Hide the roster by default
|
||||||
self.hpaned.get_child2().set_no_show_all(True)
|
self.hpaned.get_child2().set_no_show_all(True)
|
||||||
self.hpaned.get_child2().hide()
|
self.hpaned.get_child2().hide()
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue