From 62bdd6a12e50dbc95e0a9a1e2bd37aa260075f63 Mon Sep 17 00:00:00 2001 From: Marcos Pinto Date: Thu, 9 Aug 2007 05:58:31 +0000 Subject: [PATCH] load blocklist plugin last --- src/interface.py | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/interface.py b/src/interface.py index f24419f96..f47445b45 100644 --- a/src/interface.py +++ b/src/interface.py @@ -858,9 +858,16 @@ class DelugeGTK: def load_plugins(self): enable_plugins = self.config.get('enabled_plugins').split(':') + print enable_plugins for plugin in enable_plugins: + if plugin != "Blocklist Importer": + try: + self.plugins.enable_plugin(plugin) + except KeyError: + pass + if "Blocklist Importer" in enable_plugins: try: - self.plugins.enable_plugin(plugin) + self.plugins.enable_plugin("Blocklist Importer") except KeyError: pass