[jim++]. sort accounts in trayicon tooltip. fixes #1734
This commit is contained in:
		
							parent
							
								
									40e13f0bb1
								
							
						
					
					
						commit
						19e078878c
					
				
					 1 changed files with 3 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -232,7 +232,9 @@ class NotificationAreaTooltip(BaseTooltip, StatusTable):
 | 
			
		|||
 | 
			
		||||
	def get_accounts_info(self):
 | 
			
		||||
		accounts = []
 | 
			
		||||
		for account in gajim.contacts.get_accounts():
 | 
			
		||||
		accounts_list = gajim.contacts.get_accounts()
 | 
			
		||||
		accounts_list.sort()
 | 
			
		||||
		for account in accounts_list:
 | 
			
		||||
			status_idx = gajim.connections[account].connected
 | 
			
		||||
			# uncomment the following to hide offline accounts
 | 
			
		||||
			# if status_idx == 0: continue
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		
		Reference in a new issue