mirror of
https://github.com/Radarr/Radarr.git
synced 2026-04-18 21:35:51 -04:00
Fixed: Allow decimals for Custom Format size
(cherry picked from commit 7f5ddff568ce9f87bd45420cbd36690b190bd633) Closes #9043 Fixes #6147
This commit is contained in:
@@ -21,6 +21,7 @@ namespace Radarr.Http.ClientSchema
|
||||
public string Hidden { get; set; }
|
||||
public PrivacyLevel Privacy { get; set; }
|
||||
public string Placeholder { get; set; }
|
||||
public bool IsFloat { get; set; }
|
||||
|
||||
public Field Clone()
|
||||
{
|
||||
|
||||
@@ -140,6 +140,11 @@ namespace Radarr.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
|
||||
|
||||
Reference in New Issue
Block a user