fix enabling plugins on the fly

This commit is contained in:
Damien Churchill 2009-12-10 14:32:55 +00:00
parent 3c703d2ef7
commit e646a5ef87
2 changed files with 3 additions and 2 deletions

View file

@ -8,6 +8,7 @@
* Add disk usage to the statusbar
* Add a ToggleField widget and use this on the Downloads preferences
page allowing the movecom/copytorrent/autoadd boxes to be enabled.
* Fix enabling plugins.
==== GtkUI ====
* Attempt to register as the default magnet uri handler in GNOME on startup

View file

@ -142,7 +142,7 @@ Ext.deluge.preferences.Plugins = Ext.extend(Ext.Panel, {
this.grid.on('cellclick', this.onCellClick, this);
Deluge.Preferences.on('show', this.onPreferencesShow, this);
Deluge.Events.on('PluginDisabledEvent', this.onPluginDisabled, this);
Deluge.Events.on('PluginEnabledEvent', this.onPluginsEnabled, this);
Deluge.Events.on('PluginEnabledEvent', this.onPluginEnabled, this);
},
disablePlugin: function(plugin) {
@ -242,4 +242,4 @@ Ext.deluge.preferences.Plugins = Ext.extend(Ext.Panel, {
this.setInfo();
}
});
Deluge.Preferences.addPage(new Ext.deluge.preferences.Plugins());
Deluge.Preferences.addPage(new Ext.deluge.preferences.Plugins());