mirror of
https://git.deluge-torrent.org/deluge
synced 2025-08-02 22:48:40 +00:00
give some default values and limits to the spinners on the options tab
This commit is contained in:
parent
672a4debae
commit
0cb662cde8
1 changed files with 28 additions and 4 deletions
|
@ -525,7 +525,13 @@ Deluge.Details.Panel = new Ext.TabPanel({
|
||||||
cls: 'x-deluge-options-label'
|
cls: 'x-deluge-options-label'
|
||||||
}, {
|
}, {
|
||||||
id: 'max_download_speed',
|
id: 'max_download_speed',
|
||||||
width: 100
|
width: 100,
|
||||||
|
value: -1,
|
||||||
|
strategy: new Ext.ux.form.Spinner.NumberStrategy({
|
||||||
|
minValue: -1,
|
||||||
|
maxValue: 99999,
|
||||||
|
incrementValue: 1
|
||||||
|
})
|
||||||
}, {
|
}, {
|
||||||
xtype: 'label',
|
xtype: 'label',
|
||||||
text: 'KiB/s',
|
text: 'KiB/s',
|
||||||
|
@ -537,7 +543,13 @@ Deluge.Details.Panel = new Ext.TabPanel({
|
||||||
cls: 'x-deluge-options-label'
|
cls: 'x-deluge-options-label'
|
||||||
}, {
|
}, {
|
||||||
id: 'max_upload_speed',
|
id: 'max_upload_speed',
|
||||||
width: 100
|
width: 100,
|
||||||
|
value: -1,
|
||||||
|
strategy: new Ext.ux.form.Spinner.NumberStrategy({
|
||||||
|
minValue: -1,
|
||||||
|
maxValue: 99999,
|
||||||
|
incrementValue: 1
|
||||||
|
})
|
||||||
}, {
|
}, {
|
||||||
xtype: 'label',
|
xtype: 'label',
|
||||||
text: 'KiB/s',
|
text: 'KiB/s',
|
||||||
|
@ -550,7 +562,13 @@ Deluge.Details.Panel = new Ext.TabPanel({
|
||||||
}, {
|
}, {
|
||||||
id: 'max_connections',
|
id: 'max_connections',
|
||||||
colspan: 2,
|
colspan: 2,
|
||||||
width: 100
|
width: 100,
|
||||||
|
value: -1,
|
||||||
|
strategy: new Ext.ux.form.Spinner.NumberStrategy({
|
||||||
|
minValue: -1,
|
||||||
|
maxValue: 99999,
|
||||||
|
incrementValue: 1
|
||||||
|
})
|
||||||
}, {
|
}, {
|
||||||
xtype: 'label',
|
xtype: 'label',
|
||||||
text: _('Max Upload Slots'),
|
text: _('Max Upload Slots'),
|
||||||
|
@ -559,7 +577,13 @@ Deluge.Details.Panel = new Ext.TabPanel({
|
||||||
}, {
|
}, {
|
||||||
id: 'max_upload_slots',
|
id: 'max_upload_slots',
|
||||||
colspan: 2,
|
colspan: 2,
|
||||||
width: 100
|
width: 100,
|
||||||
|
value: -1,
|
||||||
|
strategy: new Ext.ux.form.Spinner.NumberStrategy({
|
||||||
|
minValue: -1,
|
||||||
|
maxValue: 99999,
|
||||||
|
incrementValue: 1
|
||||||
|
})
|
||||||
}]
|
}]
|
||||||
}]
|
}]
|
||||||
}, {
|
}, {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue