1
0
mirror of https://github.com/Artemis-RGB/Artemis synced 2025-12-13 05:48:35 +00:00

Data model - Hide ActivePaths property

This commit is contained in:
Robert 2021-06-13 21:49:54 +02:00
parent a7c7d74e03
commit 18ae7b70b0
2 changed files with 3 additions and 4 deletions

View File

@ -57,6 +57,7 @@ namespace Artemis.Core.Modules
/// <summary>
/// Gets a read-only list of <see cref="DataModelPath" />s targeting this data model
/// </summary>
[DataModelIgnore]
public ReadOnlyCollection<DataModelPath> ActivePaths => _activePaths.AsReadOnly();
/// <summary>

View File

@ -62,9 +62,8 @@ namespace Artemis.UI.Screens.ProfileEditor.Conditions
protected override List<DataModelPropertiesViewModel> GetExtraRightSideDataModelViewModels()
{
// Extra data models are expected to not have an empty root, so lets return the child
BindableCollection<DataModelVisualizationViewModel> children = GetEventDataModel().Children;
return children.Cast<DataModelPropertiesViewModel>().ToList();
// Only the VM housing the event arguments is expected here which is a DataModelPropertiesViewModel
return GetEventDataModel().Children.Cast<DataModelPropertiesViewModel>().ToList();
}
private DataModelPropertiesViewModel GetEventDataModel()
@ -78,7 +77,6 @@ namespace Artemis.UI.Screens.ProfileEditor.Conditions
public override void Evaluate()
{
throw new NotImplementedException();
}
}
}