don't show tray icon when we don't want to. Fixes #2188
This commit is contained in:
parent
2d876923d9
commit
40efbfd657
|
@ -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):
|
||||
|
|
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue