mirror of
https://git.deluge-torrent.org/deluge
synced 2025-08-25 20:25:31 +00:00
fix blocklist load on start
This commit is contained in:
parent
19ee80cfab
commit
3e6b577b1b
1 changed files with 2 additions and 8 deletions
|
@ -1022,14 +1022,6 @@ window, please enter your password"))
|
||||||
# Load plugins after we showed main window (if not started in tray)
|
# Load plugins after we showed main window (if not started in tray)
|
||||||
self.load_plugins()
|
self.load_plugins()
|
||||||
self.load_tabs_order()
|
self.load_tabs_order()
|
||||||
#now we load blocklist plugin separately since it takes much longer
|
|
||||||
enable_plugins = self.config.get('enabled_plugins').split(':')
|
|
||||||
|
|
||||||
if "Blocklist Importer" in enable_plugins:
|
|
||||||
try:
|
|
||||||
self.plugins.enable_plugin("Blocklist Importer")
|
|
||||||
except KeyError:
|
|
||||||
pass
|
|
||||||
|
|
||||||
try:
|
try:
|
||||||
gobject.threads_init()
|
gobject.threads_init()
|
||||||
|
@ -1047,6 +1039,8 @@ window, please enter your password"))
|
||||||
self.plugins.enable_plugin(plugin)
|
self.plugins.enable_plugin(plugin)
|
||||||
except KeyError:
|
except KeyError:
|
||||||
pass
|
pass
|
||||||
|
if "Blocklist Importer" in enable_plugins:
|
||||||
|
self.plugins.enable_plugin("Blocklist Importer")
|
||||||
|
|
||||||
## Call via a timer to update the interface
|
## Call via a timer to update the interface
|
||||||
def update(self):
|
def update(self):
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue