fix systray status change when status is not syncronized between all accounts. fixes #3549
This commit is contained in:
parent
b9a1365d50
commit
cbedeb9839
1 changed files with 3 additions and 4 deletions
|
@ -332,13 +332,12 @@ class Systray:
|
||||||
l = ['online', 'chat', 'away', 'xa', 'dnd', 'invisible', 'SEPARATOR',
|
l = ['online', 'chat', 'away', 'xa', 'dnd', 'invisible', 'SEPARATOR',
|
||||||
'CHANGE_STATUS_MSG_MENUITEM', 'SEPARATOR', 'offline']
|
'CHANGE_STATUS_MSG_MENUITEM', 'SEPARATOR', 'offline']
|
||||||
index = l.index(show)
|
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()
|
current = gajim.interface.roster.status_combobox.get_active()
|
||||||
if index != current:
|
if index != current:
|
||||||
gajim.interface.roster.status_combobox.set_active(index)
|
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):
|
def on_change_status_message_activate(self, widget):
|
||||||
model = gajim.interface.roster.status_combobox.get_model()
|
model = gajim.interface.roster.status_combobox.get_model()
|
||||||
|
|
Loading…
Add table
Reference in a new issue