don't use removed variables

This commit is contained in:
Yann Leboulanger 2009-11-24 15:42:31 +01:00
parent 478454985b
commit 39dc648ec8
2 changed files with 2 additions and 6 deletions

View File

@ -297,8 +297,6 @@ class PreferencesWindow:
systray_combobox.set_active(1)
else:
systray_combobox.set_active(2)
if not gajim.interface.systray_capabilities:
systray_combobox.set_sensitive(False)
# sounds
if gajim.config.get('sounds_on'):

View File

@ -5809,10 +5809,8 @@ class RosterWindow:
if gajim.config.get('show_roster_on_startup'):
self.window.show_all()
else:
if not gajim.config.get('trayicon') or not \
gajim.interface.systray_capabilities:
# cannot happen via GUI, but I put this incase user touches
# config. without trayicon, he or she should see the roster!
if gajim.config.get('trayicon') != 'always':
# Without trayicon, user should see the roster!
self.window.show_all()
gajim.config.set('show_roster_on_startup', True)