Skip to content
Snippets Groups Projects
Commit a3cd40ac authored by nkour's avatar nkour
Browse files

fix a logic bug. thanks deluge

parent 20aac96c
No related branches found
No related tags found
No related merge requests found
......@@ -345,7 +345,10 @@ class Systray:
self.make_menu(event)
def on_show_menuitem_activate(self, widget, show):
l = ['online', 'chat', 'away', 'xa', 'dnd', 'invisible', 'offline']
# we all add some fake (we cannot select those nor have them as show)
# but this helps to align with roster's status_combobox index positions
l = ['online', 'chat', 'away', 'xa', 'dnd', 'invisible', 'SEPARATOR',
'CHANGE_STATUS_MSG_MENUITEM', 'SEPARATOR', 'offline']
index = l.index(show)
gajim.interface.roster.status_combobox.set_active(index)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment