add a strategy to the daemon port spinner

This commit is contained in:
Damien Churchill 2009-07-30 23:13:49 +00:00
parent 63af59ab46
commit 48ba81b61b
1 changed files with 8 additions and 1 deletions

View File

@ -23,7 +23,14 @@ Ext.deluge.preferences.Daemon = Ext.extend(Ext.form.FormPanel, {
});
optMan.bind('daemon_port', fieldset.add({
fieldLabel: _('Daemon port'),
name: 'daemon_port'
name: 'daemon_port',
value: 58846,
strategy: {
xtype: 'number',
decimalPrecision: 0,
minValue: -1,
maxValue: 99999
},
}));
fieldset = this.add({