set trayicon checkbox unsensitive when trayicon module is not available
This commit is contained in:
		
							parent
							
								
									8e0fb06706
								
							
						
					
					
						commit
						c4c79d4d46
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -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
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		
		Reference in a new issue