fix plugin disabling

This commit is contained in:
Damien Churchill 2010-04-23 23:47:10 +01:00
parent ade5f596f4
commit 50162694b5
1 changed files with 3 additions and 0 deletions

View File

@ -75,6 +75,8 @@ deluge.ui = {
deluge.events.on("connect", this.onConnect, this); deluge.events.on("connect", this.onConnect, this);
deluge.events.on("disconnect", this.onDisconnect, 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({ deluge.client = new Ext.ux.util.RpcClient({
url: deluge.config.base + 'json' url: deluge.config.base + 'json'
}); });
@ -82,6 +84,7 @@ deluge.ui = {
for (var plugin in Deluge.plugins) { for (var plugin in Deluge.plugins) {
plugin = new Deluge.plugins[plugin](); plugin = new Deluge.plugins[plugin]();
plugin.enable(); plugin.enable();
deluge.plugins[plugin.name] = plugin;
} }
// Initialize quicktips so all the tooltip configs start working. // Initialize quicktips so all the tooltip configs start working.