1
0
Fork 0
mirror of https://github.com/transmission/transmission synced 2025-03-19 18:25:38 +00:00

allow decimal values in seedRatioLimit input (#2618)

Co-authored-by: Jeff Fredrickson <jeff.fredrickson@gmail.com>
This commit is contained in:
Charles Kerr 2022-02-13 09:58:59 -06:00 committed by GitHub
parent 83db648b3c
commit 9f050587d7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 1 deletions

File diff suppressed because one or more lines are too long

View file

@ -272,6 +272,8 @@ export class PrefsDialog extends EventTarget {
input = document.createElement('input');
input.type = 'number';
input.min = '0.1';
input.step = 'any';
input.dataset.key = 'seedRatioLimit';
root.append(input);
PrefsDialog._enableIfChecked(input, cal.check);
@ -287,6 +289,8 @@ export class PrefsDialog extends EventTarget {
input = document.createElement('input');
input.type = 'number';
input.min = '0.1';
input.step = 'any';
input.dataset.key = 'idle-seeding-limit';
root.append(input);
PrefsDialog._enableIfChecked(input, cal.check);