Module: deluge Branch: master Commit: 50162694b5e409e1f73d116361a4b7efba644bfa
Author: Damien Churchill <[email protected]> Date: Fri Apr 23 23:47:10 2010 +0100 fix plugin disabling --- deluge/ui/web/js/deluge-all/UI.js | 3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) diff --git a/deluge/ui/web/js/deluge-all/UI.js b/deluge/ui/web/js/deluge-all/UI.js index 48be930..5ec69cc 100644 --- a/deluge/ui/web/js/deluge-all/UI.js +++ b/deluge/ui/web/js/deluge-all/UI.js @@ -75,6 +75,8 @@ deluge.ui = { deluge.events.on("connect", this.onConnect, this); deluge.events.on("disconnect", this.onDisconnect, this); + deluge.events.on('PluginDisabledEvent', this.onPluginDisabled, this); + deluge.events.on('PluginEnabledEvent', this.onPluginEnabled, this); deluge.client = new Ext.ux.util.RpcClient({ url: deluge.config.base + 'json' }); @@ -82,6 +84,7 @@ deluge.ui = { for (var plugin in Deluge.plugins) { plugin = new Deluge.plugins[plugin](); plugin.enable(); + deluge.plugins[plugin.name] = plugin; } // Initialize quicktips so all the tooltip configs start working. -- 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.
