Use number input for seed ratio

(cherry picked from commit 1eddf3a152fae04142263c02a3e3b317ff2feeb2)

Plus translations

Closes #3470
This commit is contained in:
Bogdan
2024-05-07 00:21:50 +03:00
parent 11d83165e5
commit 5544e169a6
3 changed files with 7 additions and 3 deletions

View File

@@ -146,7 +146,7 @@ namespace Readarr.Http.ClientSchema
field.Hidden = fieldAttribute.Hidden.ToString().FirstCharToLower();
}
if (fieldAttribute.Type is FieldType.Number && propertyInfo.PropertyType == typeof(double))
if (fieldAttribute.Type is FieldType.Number && (propertyInfo.PropertyType == typeof(double) || propertyInfo.PropertyType == typeof(double?)))
{
field.IsFloat = true;
}