From 80053ab18015cfb0a666fcdbc887c1b3aaf25887 Mon Sep 17 00:00:00 2001 From: Yann Leboulanger Date: Tue, 23 Jun 2009 22:42:27 +0200 Subject: [PATCH] take into account systray option instantly in pref window --- src/config.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/config.py b/src/config.py index 6669d2291..5f28134f8 100644 --- a/src/config.py +++ b/src/config.py @@ -769,10 +769,18 @@ class PreferencesWindow: active = widget.get_active() if active == 0: gajim.config.set('trayicon', 'never') + gajim.interface.systray_enabled = False + gajim.interface.systray.hide_icon() elif active == 1: gajim.config.set('trayicon', 'on_event') + gajim.interface.systray_enabled = True + gajim.interface.systray.show_icon() + gajim.interface.systray.set_img() else: gajim.config.set('trayicon', 'always') + gajim.interface.systray_enabled = True + gajim.interface.systray.show_icon() + gajim.interface.systray.set_img() def on_advanced_notifications_button_clicked(self, widget): dialogs.AdvancedNotificationsWindow()