Module: deluge
Branch: master
Commit: 01e847b9976881ac649d20cd9303f2d269fae8ce

Author: Damien Churchill <[email protected]>
Date:   Fri Apr 23 23:48:29 2010 +0100

fix the execute plugin disabling and change the namespace of the preferences 
page

---

 deluge/plugins/execute/execute/data/execute.js |   15 +++++++--------
 1 files changed, 7 insertions(+), 8 deletions(-)

diff --git a/deluge/plugins/execute/execute/data/execute.js 
b/deluge/plugins/execute/execute/data/execute.js
index de0c690..77d2638 100644
--- a/deluge/plugins/execute/execute/data/execute.js
+++ b/deluge/plugins/execute/execute/data/execute.js
@@ -30,20 +30,20 @@ Copyright:
     this exception statement from your version. If you delete this exception
     statement from all source files in the program, then also delete it here.
 */
-Ext.ns('Deluge.ux.execute');
+Ext.ns('Deluge.ux.preferences');
 
 /**
- * @class Deluge.ux.execute.ExecutePreferencesPage
+ * @class Deluge.ux.preferences.ExecutePage
  * @extends Ext.Panel
  */
-Deluge.ux.execute.ExecutePreferencesPage = Ext.extend(Ext.Panel, {
+Deluge.ux.preferences.ExecutePage = Ext.extend(Ext.Panel, {
 
        title: _('Execute'),
        layout: 'border',
        border: false,
            
        initComponent: function() {
-           
Deluge.ux.execute.ExecutePreferencesPage.superclass.initComponent.call(this);
+           
Deluge.ux.preferences.ExecutePage.superclass.initComponent.call(this);
            this.commands = this.add({
                        xtype: 'grid',
                        region: 'center',
@@ -89,7 +89,7 @@ Deluge.ux.execute.ExecutePreferencesPage = 
Ext.extend(Ext.Panel, {
        },
        
        onShow: function() {
-           
Deluge.ux.execute.ExecutePreferencesPage.superclass.onShow.call(this);
+           Deluge.ux.preferences.ExecutePage.superclass.onShow.call(this);
            deluge.client.execute.get_commands({
                        success: function(commands) {
                                this.commands.getStore().loadData(commands);
@@ -104,11 +104,10 @@ Deluge.plugins.ExecutePlugin = Ext.extend(Deluge.Plugin, {
        name: 'Execute',
        
        onDisable: function() {
-           Deluge.Preferences.removePage(this.prefsPage);
+           deluge.preferences.removePage(this.prefsPage);
        },
        
        onEnable: function() {
-               this.prefsPage = new Deluge.ux.execute.ExecutePreferencesPage();
-               this.prefsPage = deluge.preferences.addPage(this.prefsPage);
+               this.prefsPage = deluge.preferences.addPage(new 
Deluge.ux.preferences.ExecutePage());
        }
 });

-- 
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