fixed mistake
This commit is contained in:
@@ -81,7 +81,7 @@ namespace Torch.Views
|
|||||||
//If not found and IgnoreDisplay is not set, fall back to system DisplayAttribute
|
//If not found and IgnoreDisplay is not set, fall back to system DisplayAttribute
|
||||||
if (a == null && !IgnoreDisplay)
|
if (a == null && !IgnoreDisplay)
|
||||||
a = property.GetCustomAttribute<System.ComponentModel.DataAnnotations.DisplayAttribute>();
|
a = property.GetCustomAttribute<System.ComponentModel.DataAnnotations.DisplayAttribute>();
|
||||||
if (IgnoreDisplay && a == null || a?.Visible == false)
|
if (!IgnoreDisplay && a == null || a?.Visible == false)
|
||||||
continue;
|
continue;
|
||||||
descriptors[property] = a;
|
descriptors[property] = a;
|
||||||
string category = a?.GroupName ?? "Misc";
|
string category = a?.GroupName ?? "Misc";
|
||||||
|
Reference in New Issue
Block a user