take into account systray option instantly in pref window

This commit is contained in:
Yann Leboulanger 2009-06-23 22:42:27 +02:00
parent 6440389f50
commit 80053ab180
1 changed files with 8 additions and 0 deletions

View File

@ -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()