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

View File

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