This commit is contained in:
CortexCore
2025-07-11 11:45:45 +08:00
parent fc189b98cc
commit ecae0f809c
76 changed files with 237471 additions and 33136 deletions

View File

@@ -71,10 +71,9 @@ namespace BITKit.UX
return;
}
}
foreach (var fieldInfo in self.GetType()
.GetFields(BindingFlags.Instance | BindingFlags.Public | BindingFlags.NonPublic | BindingFlags.DeclaredOnly)
foreach (var fieldInfo in BITSharp.GetAllBaseType(self.GetType()).SelectMany(x=>x.GetFields(ReflectionHelper.Flags))
.Where(x => x.GetCustomAttribute<UXBindPathAttribute>() is not null)
)
{
@@ -100,9 +99,10 @@ namespace BITKit.UX
}
catch (Exception e)
{
BIT4Log.Warning<UXUtils>(fieldInfo!.Name);
BIT4Log.Warning<UXUtils>($"{fieldInfo!.Name}:{e.Message}");
}
}
}
}
}