mirror of
https://github.com/Artemis-RGB/Artemis
synced 2026-11-12 03:48:56 +00:00
Data model paths - Added support for lists
Data model paths - Added deferred compilation to accessors Data models - Fixed property name being empty sometimes Plugins - Fixed disabling plugins that failed to load
This commit is contained in:
1 parent
3be217a33b
commit
3fcfe4ceec
10 files changed
+176
-96
No files matched your search
@@ -64,7 +64,8 @@ namespace Artemis.Core.DataModelExpansions
|
||||
throw new ArgumentNullException(nameof(dynamicDataModel));
|
||||
if (key == null)
|
||||
throw new ArgumentNullException(nameof(key));
|
||||
|
||||
if (key.Contains('.'))
|
||||
throw new ArtemisCoreException("The provided key contains an illegal character (.)");
|
||||
if (_dynamicDataModels.ContainsKey(key))
|
||||
{
|
||||
throw new ArtemisCoreException($"Cannot add a dynamic data model with key '{key}' " +
|
||||
@@ -87,7 +88,7 @@ namespace Artemis.Core.DataModelExpansions
|
||||
dynamicDataModel.PluginInfo = PluginInfo;
|
||||
dynamicDataModel.DataModelDescription = new DataModelPropertyAttribute
|
||||
{
|
||||
Name = name ?? key.Humanize(),
|
||||
Name = string.IsNullOrWhiteSpace(name) ? key.Humanize() : name,
|
||||
Description = description
|
||||
};
|
||||
_dynamicDataModels.Add(key, dynamicDataModel);
|
||||
|
||||
Reference in new issue
Block a user