show roster when it's hidden and we try to remove systray icon. Fixes #2421
This commit is contained in:
		
							parent
							
								
									b49eb06010
								
							
						
					
					
						commit
						f6df3bbbee
					
				
					 1 changed files with 2 additions and 0 deletions
				
			
		| 
						 | 
				
			
			@ -511,6 +511,8 @@ class PreferencesWindow:
 | 
			
		|||
			gajim.interface.systray.change_status(show)
 | 
			
		||||
		else:
 | 
			
		||||
			gajim.config.set('trayicon', False)
 | 
			
		||||
			if not gajim.interface.roster.window.get_property('visible'):
 | 
			
		||||
				gajim.interface.roster.window.present()
 | 
			
		||||
			gajim.interface.hide_systray()
 | 
			
		||||
			gajim.config.set('show_roster_on_startup', True) # no tray, show roster!
 | 
			
		||||
		gajim.interface.roster.draw_roster()
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		
		Reference in a new issue