load blocklist plugin last

This commit is contained in:
Marcos Pinto 2007-08-09 05:58:31 +00:00
parent e9d8e1b290
commit 62bdd6a12e
1 changed files with 8 additions and 1 deletions

View File

@ -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