set trayicon checkbox unsensitive when trayicon module is not available

This commit is contained in:
Yann Leboulanger 2004-12-14 16:13:58 +00:00
parent 8e0fb06706
commit c4c79d4d46
1 changed files with 1 additions and 1 deletions

View File

@ -436,7 +436,7 @@ class preference_Window:
#trayicon
st = self.plugin.config['trayicon']
self.chk_trayicon.set_active(st)
if self.plugin.sleeper.getState() == common.sleepy.STATE_UNKNOWN:
if isinstance(self.plugin.systray, gtkgui.systrayDummy):
self.chk_trayicon.set_sensitive(False)
#Color for account text