Fixed: Allow decimals for Custom Format size

(cherry picked from commit 7f5ddff568ce9f87bd45420cbd36690b190bd633)

Closes #2839
This commit is contained in:
Mark McDowall
2023-08-19 00:14:54 -07:00
committed by Bogdan
parent c10a32534c
commit 2081f2e321
4 changed files with 9 additions and 1 deletions
@@ -124,6 +124,11 @@ namespace Readarr.Http.ClientSchema
field.Hidden = fieldAttribute.Hidden.ToString().FirstCharToLower();
}
if (fieldAttribute.Type is FieldType.Number && propertyInfo.PropertyType == typeof(double))
{
field.IsFloat = true;
}
var valueConverter = GetValueConverter(propertyInfo.PropertyType);
result.Add(new FieldMapping