From 0fe78daae8606b4ee4a6da576e504c68ba9ce084 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Philipp=20H=C3=B6rist?= Date: Wed, 15 Nov 2017 21:57:15 +0100 Subject: [PATCH] Init PluginManger earlier - Plugins need the possibility to add caps before Gajim updates them --- gajim/gui_interface.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/gajim/gui_interface.py b/gajim/gui_interface.py index 6b221494a..9236be4a4 100644 --- a/gajim/gui_interface.py +++ b/gajim/gui_interface.py @@ -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: