Init PluginManger earlier
- Plugins need the possibility to add caps before Gajim updates them
This commit is contained in:
		
							parent
							
								
									5236693df9
								
							
						
					
					
						commit
						0fe78daae8
					
				
					 1 changed files with 4 additions and 4 deletions
				
			
		|  | @ -2562,10 +2562,6 @@ class Interface: | ||||||
|         MessageWindowMgr.ONE_MSG_WINDOW_ALWAYS_WITH_ROSTER: |         MessageWindowMgr.ONE_MSG_WINDOW_ALWAYS_WITH_ROSTER: | ||||||
|             self.msg_win_mgr.create_window(None, None, None) |             self.msg_win_mgr.create_window(None, None, None) | ||||||
| 
 | 
 | ||||||
|         # Creating plugin manager |  | ||||||
|         from gajim import plugins |  | ||||||
|         app.plugin_manager = plugins.PluginManager() |  | ||||||
| 
 |  | ||||||
|         self.roster._before_fill() |         self.roster._before_fill() | ||||||
|         for account in app.connections: |         for account in app.connections: | ||||||
|             app.connections[account].load_roster_from_db() |             app.connections[account].load_roster_from_db() | ||||||
|  | @ -2762,6 +2758,10 @@ class Interface: | ||||||
|             app.gajim_optional_features[a] = [] |             app.gajim_optional_features[a] = [] | ||||||
|             app.caps_hash[a] = '' |             app.caps_hash[a] = '' | ||||||
| 
 | 
 | ||||||
|  |         # Creating plugin manager | ||||||
|  |         from gajim import plugins | ||||||
|  |         app.plugin_manager = plugins.PluginManager() | ||||||
|  | 
 | ||||||
|         helpers.update_optional_features() |         helpers.update_optional_features() | ||||||
|         # prepopulate data which we are sure of; note: we do not log these info |         # prepopulate data which we are sure of; note: we do not log these info | ||||||
|         for account in app.connections: |         for account in app.connections: | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		
		Reference in a new issue