mirror of
https://git.deluge-torrent.org/deluge
synced 2025-04-20 11:35:49 +00:00
fix enabled plugins after connecting to a daemon
This commit is contained in:
parent
7df7f13e26
commit
67905b6f5b
1 changed files with 13 additions and 0 deletions
|
@ -156,6 +156,10 @@ deluge.ui = {
|
|||
this.running = setInterval(this.update, 2000);
|
||||
this.update();
|
||||
}
|
||||
deluge.client.web.get_plugins({
|
||||
success: this.onGotPlugins,
|
||||
scope: this
|
||||
});
|
||||
},
|
||||
|
||||
/**
|
||||
|
@ -166,6 +170,15 @@ deluge.ui = {
|
|||
this.stop();
|
||||
},
|
||||
|
||||
onGotPlugins: function(plugins) {
|
||||
Ext.each(plugins.enabled_plugins, function(plugin) {
|
||||
deluge.client.web.get_plugin_resources(plugin, {
|
||||
success: this.onGotPluginResources,
|
||||
scope: this
|
||||
});
|
||||
}, this);
|
||||
},
|
||||
|
||||
onPluginEnabled: function(pluginName) {
|
||||
if (deluge.plugins[pluginName]) {
|
||||
deluge.plugins[pluginName].enable();
|
||||
|
|
Loading…
Add table
Reference in a new issue