Fix disabled join groupchat menu
When there are no bookmarks on the server the join groupchat menu was disabled, preventing the user to open the join groupchat dialog
This commit is contained in:
		
							parent
							
								
									c90339383c
								
							
						
					
					
						commit
						efcb6235e2
					
				
					 1 changed files with 2 additions and 4 deletions
				
			
		| 
						 | 
				
			
			@ -686,10 +686,8 @@ def get_groupchat_menu(control_id):
 | 
			
		|||
 | 
			
		||||
def get_bookmarks_menu(account, rebuild=False):
 | 
			
		||||
    con = app.connections[account]
 | 
			
		||||
    boomarks = con.get_module('Bookmarks').get_sorted_bookmarks(
 | 
			
		||||
        short_name=True)
 | 
			
		||||
    if not boomarks:
 | 
			
		||||
        return None
 | 
			
		||||
    boomarks = con.get_module('Bookmarks').get_sorted_bookmarks(short_name=True)
 | 
			
		||||
 | 
			
		||||
    menu = Gio.Menu()
 | 
			
		||||
 | 
			
		||||
    # Build Join Groupchat
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		
		Reference in a new issue