Commit cbedeb98 authored by Yann Leboulanger's avatar Yann Leboulanger

fix systray status change when status is not syncronized between all accounts. fixes #3549

parent b9a1365d
......@@ -332,13 +332,12 @@ class Systray:
l = ['online', 'chat', 'away', 'xa', 'dnd', 'invisible', 'SEPARATOR',
'CHANGE_STATUS_MSG_MENUITEM', 'SEPARATOR', 'offline']
index = l.index(show)
if not helpers.statuses_unified():
gajim.interface.roster.status_combobox.set_active(index + 2)
return
current = gajim.interface.roster.status_combobox.get_active()
if index != current:
gajim.interface.roster.status_combobox.set_active(index)
elif not helpers.statuses_unified():
# We maybe need to emit the changed signal if all globaly sync'ed
# account don't have the global status
gajim.interface.roster.status_combobox.emit('changed')
def on_change_status_message_activate(self, widget):
model = gajim.interface.roster.status_combobox.get_model()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment