rename deluge-execute.js to execute.js

This commit is contained in:
Damien Churchill 2009-10-01 10:43:03 +00:00
parent 2d10f88714
commit 365d21ed04
1 changed files with 19 additions and 1 deletions

View File

@ -71,5 +71,23 @@
});
}
});
Deluge.Preferences.addPage(new ExecutePanel());
ExecutePlugin = Ext.extend(Deluge.Plugin, {
constructor: function(config) {
config = Ext.apply({
name: "Execute"
}, config);
ExecutePlugin.superclass.constructor.call(this, config);
},
onDisable: function() {
Deluge.Preferences.removePage(this.prefsPage);
},
onEnable: function() {
this.prefsPage = new ExecutePanel();
this.prefsPage = Deluge.Preferences.addPage(this.prefsPage);
}
});
new ExecutePlugin();
})();