mirror of
https://github.com/Artemis-RGB/Artemis
synced 2026-11-12 11:56:30 +00:00
Data models - Added ClearDynamicChildren method
Plugins - Added async support for timed updates Plugins - Added dialog host to plugin settings window Data model visualization - Fixed some null references Data model visualization - Added check to ensure parameterless getters are present
This commit is contained in:
1 parent
c095f329c4
commit
17d41647b6
8 files changed
+96
-26
No files matched your search
@@ -121,7 +121,7 @@ namespace Artemis.UI.Shared
|
||||
/// <inheritdoc />
|
||||
public override string ToString()
|
||||
{
|
||||
return $"[List] {DisplayPath ?? Path} - {List.Count} item(s)";
|
||||
return $"[List] {DisplayPath ?? Path} - {List?.Count ?? 0} item(s)";
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -57,7 +57,9 @@ namespace Artemis.UI.Shared
|
||||
/// <inheritdoc />
|
||||
public override string ToString()
|
||||
{
|
||||
return $"[{DisplayValueType.Name}] {DisplayPath ?? Path} - {DisplayValue}";
|
||||
if (DisplayValueType != null)
|
||||
return $"[{DisplayValueType.Name}] {DisplayPath ?? Path} - {DisplayValue}";
|
||||
return $"{DisplayPath ?? Path} - {DisplayValue}";
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -193,6 +193,9 @@ namespace Artemis.UI.Shared
|
||||
continue;
|
||||
if (propertyInfo.GetCustomAttribute<DataModelIgnoreAttribute>() != null)
|
||||
continue;
|
||||
MethodInfo getMethod = propertyInfo.GetGetMethod();
|
||||
if (getMethod == null || getMethod.GetParameters().Any())
|
||||
continue;
|
||||
|
||||
DataModelVisualizationViewModel child = CreateChild(dataModelUIService, childPath, GetChildDepth());
|
||||
if (child != null)
|
||||
|
||||
Reference in new issue
Block a user