Module: deluge
Branch: master
Commit: 67905b6f5bdee1cbbdc8fd30a4cefbe36a546d4b

Author: Damien Churchill <[email protected]>
Date:   Wed Apr 28 14:00:39 2010 +0100

fix enabled plugins after connecting to a daemon

---

 deluge/ui/web/js/deluge-all/UI.js |   13 +++++++++++++
 1 files changed, 13 insertions(+), 0 deletions(-)

diff --git a/deluge/ui/web/js/deluge-all/UI.js 
b/deluge/ui/web/js/deluge-all/UI.js
index 1f1ce9c..af5c3f7 100644
--- a/deluge/ui/web/js/deluge-all/UI.js
+++ b/deluge/ui/web/js/deluge-all/UI.js
@@ -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();

-- 
You received this message because you are subscribed to the Google Groups 
"deluge-commit" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/deluge-commit?hl=en.

Reply via email to