fixed mistake

This commit is contained in:
LTP
2021-02-12 12:08:43 +07:00
committed by GitHub
parent 169b543f7d
commit 2c44860a70

View File

@@ -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";