don't show tray icon when we don't want to. Fixes #2188

This commit is contained in:
Yann Leboulanger 2006-07-28 05:54:46 +00:00
parent 2d876923d9
commit 40efbfd657
2 changed files with 3 additions and 2 deletions

View File

@ -1437,8 +1437,8 @@ class Interface:
self.systray.show_icon()
def hide_systray(self):
self.systray.hide_icon()
self.systray_enabled = False
self.systray.hide_icon()
def image_is_ok(self, image):
if not os.path.exists(image):

View File

@ -345,7 +345,8 @@ class Systray:
def on_tray_destroyed(self, widget):
'''re-add trayicon when systray is destroyed'''
self.t = None
self.show_icon()
if gajim.interface.systray_enabled:
self.show_icon()
def show_icon(self):
if not self.t: