under circum tray in windows could be removed and then we had a TB. fixes #1446
This commit is contained in:
parent
3dee7e4be4
commit
1ef27715af
|
@ -263,8 +263,6 @@ class SystrayWin32(systray.Systray):
|
||||||
self.on_left_click()
|
self.on_left_click()
|
||||||
|
|
||||||
def add_jid(self, jid, account, typ):
|
def add_jid(self, jid, account, typ):
|
||||||
if self.systray_winapi.notify_icon is None:
|
|
||||||
return
|
|
||||||
systray.Systray.add_jid(self, jid, account, typ)
|
systray.Systray.add_jid(self, jid, account, typ)
|
||||||
|
|
||||||
nb = gajim.interface.roster.nb_unread
|
nb = gajim.interface.roster.nb_unread
|
||||||
|
@ -306,7 +304,7 @@ class SystrayWin32(systray.Systray):
|
||||||
def set_img(self):
|
def set_img(self):
|
||||||
self.tray_ico_imgs = self.load_icos() #FIXME: do not do this here
|
self.tray_ico_imgs = self.load_icos() #FIXME: do not do this here
|
||||||
# see gajim.interface.roster.reload_jabber_state_images() to merge
|
# see gajim.interface.roster.reload_jabber_state_images() to merge
|
||||||
self.systray_winapi.remove_notify_icon()
|
|
||||||
if len(self.jids) > 0:
|
if len(self.jids) > 0:
|
||||||
state = 'message'
|
state = 'message'
|
||||||
else:
|
else:
|
||||||
|
@ -315,6 +313,7 @@ class SystrayWin32(systray.Systray):
|
||||||
if hicon is None:
|
if hicon is None:
|
||||||
return
|
return
|
||||||
|
|
||||||
|
self.systray_winapi.remove_notify_icon()
|
||||||
self.systray_winapi.add_notify_icon(self.systray_context_menu, hicon,
|
self.systray_winapi.add_notify_icon(self.systray_context_menu, hicon,
|
||||||
'Gajim')
|
'Gajim')
|
||||||
self.systray_winapi.notify_icon.menu = self.systray_context_menu
|
self.systray_winapi.notify_icon.menu = self.systray_context_menu
|
||||||
|
|
Loading…
Reference in New Issue