mirror of
https://git.deluge-torrent.org/deluge
synced 2025-08-17 07:38:42 +00:00
build the config panel in the initComponent method
This commit is contained in:
parent
c383345cd9
commit
8ad774cd3c
1 changed files with 9 additions and 9 deletions
|
@ -68,14 +68,7 @@ Copyright:
|
||||||
cmargins: '5 0 5 5',
|
cmargins: '5 0 5 5',
|
||||||
width: 120,
|
width: 120,
|
||||||
collapsible: true
|
collapsible: true
|
||||||
}, {
|
}, ]
|
||||||
region: 'center',
|
|
||||||
header: false,
|
|
||||||
layout: 'fit',
|
|
||||||
height: 400,
|
|
||||||
margins: '5 5 5 5',
|
|
||||||
cmargins: '5 5 5 5'
|
|
||||||
}]
|
|
||||||
}, config);
|
}, config);
|
||||||
Ext.deluge.PreferencesWindow.superclass.constructor.call(this, config);
|
Ext.deluge.PreferencesWindow.superclass.constructor.call(this, config);
|
||||||
},
|
},
|
||||||
|
@ -83,7 +76,14 @@ Copyright:
|
||||||
initComponent: function() {
|
initComponent: function() {
|
||||||
Ext.deluge.PreferencesWindow.superclass.initComponent.call(this);
|
Ext.deluge.PreferencesWindow.superclass.initComponent.call(this);
|
||||||
this.categoriesGrid = this.items.get(0);
|
this.categoriesGrid = this.items.get(0);
|
||||||
this.configPanel = this.items.get(1);
|
this.configPanel = this.add({
|
||||||
|
region: 'center',
|
||||||
|
header: false,
|
||||||
|
layout: 'fit',
|
||||||
|
height: 400,
|
||||||
|
margins: '5 5 5 5',
|
||||||
|
cmargins: '5 5 5 5'
|
||||||
|
});
|
||||||
|
|
||||||
this.addButton(_('Close'), this.onClose, this);
|
this.addButton(_('Close'), this.onClose, this);
|
||||||
this.addButton(_('Apply'), this.onApply, this);
|
this.addButton(_('Apply'), this.onApply, this);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue