Init PluginManger earlier

- Plugins need the possibility to add caps before Gajim updates them
This commit is contained in:
Philipp Hörist 2017-11-15 21:57:15 +01:00
parent 5236693df9
commit 0fe78daae8
1 changed files with 4 additions and 4 deletions

View File

@ -2562,10 +2562,6 @@ class Interface:
MessageWindowMgr.ONE_MSG_WINDOW_ALWAYS_WITH_ROSTER:
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()
for account in app.connections:
app.connections[account].load_roster_from_db()
@ -2762,6 +2758,10 @@ class Interface:
app.gajim_optional_features[a] = []
app.caps_hash[a] = ''
# Creating plugin manager
from gajim import plugins
app.plugin_manager = plugins.PluginManager()
helpers.update_optional_features()
# prepopulate data which we are sure of; note: we do not log these info
for account in app.connections: