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:
parent
a7c7d74e03
commit
18ae7b70b0
@ -57,6 +57,7 @@ namespace Artemis.Core.Modules
|
|||||||
/// <summary>
|
/// <summary>
|
||||||
/// Gets a read-only list of <see cref="DataModelPath" />s targeting this data model
|
/// Gets a read-only list of <see cref="DataModelPath" />s targeting this data model
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
[DataModelIgnore]
|
||||||
public ReadOnlyCollection<DataModelPath> ActivePaths => _activePaths.AsReadOnly();
|
public ReadOnlyCollection<DataModelPath> ActivePaths => _activePaths.AsReadOnly();
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
|||||||
@ -62,9 +62,8 @@ namespace Artemis.UI.Screens.ProfileEditor.Conditions
|
|||||||
|
|
||||||
protected override List<DataModelPropertiesViewModel> GetExtraRightSideDataModelViewModels()
|
protected override List<DataModelPropertiesViewModel> GetExtraRightSideDataModelViewModels()
|
||||||
{
|
{
|
||||||
// Extra data models are expected to not have an empty root, so lets return the child
|
// Only the VM housing the event arguments is expected here which is a DataModelPropertiesViewModel
|
||||||
BindableCollection<DataModelVisualizationViewModel> children = GetEventDataModel().Children;
|
return GetEventDataModel().Children.Cast<DataModelPropertiesViewModel>().ToList();
|
||||||
return children.Cast<DataModelPropertiesViewModel>().ToList();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private DataModelPropertiesViewModel GetEventDataModel()
|
private DataModelPropertiesViewModel GetEventDataModel()
|
||||||
@ -78,7 +77,6 @@ namespace Artemis.UI.Screens.ProfileEditor.Conditions
|
|||||||
|
|
||||||
public override void Evaluate()
|
public override void Evaluate()
|
||||||
{
|
{
|
||||||
throw new NotImplementedException();
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Loading…
x
Reference in New Issue
Block a user