some bugs in status numbers
This commit is contained in:
parent
c3440cae35
commit
2b0d78446c
|
@ -235,7 +235,7 @@ class Interface:
|
||||||
# check OUR status and if we allow notifications for that status
|
# check OUR status and if we allow notifications for that status
|
||||||
if gajim.config.get('autopopupaway'): # always notify
|
if gajim.config.get('autopopupaway'): # always notify
|
||||||
show_notification = True
|
show_notification = True
|
||||||
elif gajim.connections[account].connected in (1, 2): #online or chat
|
elif gajim.connections[account].connected in (2, 3): #online or chat
|
||||||
show_notification = True
|
show_notification = True
|
||||||
if show_notification:
|
if show_notification:
|
||||||
instance = dialogs.Popup_window(self, 'Contact Online', jid, \
|
instance = dialogs.Popup_window(self, 'Contact Online', jid, \
|
||||||
|
@ -252,7 +252,7 @@ class Interface:
|
||||||
# check OUR status and if we allow notifications for that status
|
# check OUR status and if we allow notifications for that status
|
||||||
if gajim.config.get('autopopupaway'): # always notify
|
if gajim.config.get('autopopupaway'): # always notify
|
||||||
show_notification = True
|
show_notification = True
|
||||||
elif gajim.connections[account].connected in (1, 2): #online or chat
|
elif gajim.connections[account].connected in (2, 3): #online or chat
|
||||||
show_notification = True
|
show_notification = True
|
||||||
if show_notification:
|
if show_notification:
|
||||||
instance = dialogs.Popup_window(self, 'Contact Offline', jid, \
|
instance = dialogs.Popup_window(self, 'Contact Offline', jid, \
|
||||||
|
@ -283,7 +283,7 @@ class Interface:
|
||||||
# check OUR status and if we allow notifications for that status
|
# check OUR status and if we allow notifications for that status
|
||||||
if gajim.config.get('autopopupaway'): # always show notification
|
if gajim.config.get('autopopupaway'): # always show notification
|
||||||
show_notification = True
|
show_notification = True
|
||||||
elif gajim.connections[account].connected in (1, 2): #online or chat
|
elif gajim.connections[account].connected in (2, 3): #online or chat
|
||||||
show_notification = True
|
show_notification = True
|
||||||
if show_notification:
|
if show_notification:
|
||||||
instance = dialogs.Popup_window(self, 'New Message', jid, account)
|
instance = dialogs.Popup_window(self, 'New Message', jid, account)
|
||||||
|
|
|
@ -215,22 +215,22 @@ class Systray:
|
||||||
self.plugin.roster.status_combobox.set_active(0) # 0 is online
|
self.plugin.roster.status_combobox.set_active(0) # 0 is online
|
||||||
|
|
||||||
def on_free_for_chat_menuitem_activate(self, widget):
|
def on_free_for_chat_menuitem_activate(self, widget):
|
||||||
self.plugin.roster.status_combobox.set_active(0) # 1 is free for chat
|
self.plugin.roster.status_combobox.set_active(1) # 1 is free for chat
|
||||||
|
|
||||||
def on_away_menuitem_activate(self, widget):
|
def on_away_menuitem_activate(self, widget):
|
||||||
self.plugin.roster.status_combobox.set_active(1) # 2 is away
|
self.plugin.roster.status_combobox.set_active(2) # 2 is away
|
||||||
|
|
||||||
def on_xa_menuitem_activate(self, widget):
|
def on_xa_menuitem_activate(self, widget):
|
||||||
self.plugin.roster.status_combobox.set_active(2) # 3 is xa
|
self.plugin.roster.status_combobox.set_active(3) # 3 is xa
|
||||||
|
|
||||||
def on_dnd_menuitem_activate(self, widget):
|
def on_dnd_menuitem_activate(self, widget):
|
||||||
self.plugin.roster.status_combobox.set_active(3) # 4 is dnd
|
self.plugin.roster.status_combobox.set_active(4) # 4 is dnd
|
||||||
|
|
||||||
def on_invisible_menuitem_activate(self, widget):
|
def on_invisible_menuitem_activate(self, widget):
|
||||||
self.plugin.roster.status_combobox.set_active(4) # 5 is invisible
|
self.plugin.roster.status_combobox.set_active(5) # 5 is invisible
|
||||||
|
|
||||||
def on_offline_menuitem_activate(self, widget):
|
def on_offline_menuitem_activate(self, widget):
|
||||||
self.plugin.roster.status_combobox.set_active(5) # 6 is offline
|
self.plugin.roster.status_combobox.set_active(6) # 6 is offline
|
||||||
|
|
||||||
def show_icon(self):
|
def show_icon(self):
|
||||||
if not self.t:
|
if not self.t:
|
||||||
|
|
Loading…
Reference in New Issue