mirror of
https://github.com/Artemis-RGB/Artemis
synced 2026-11-12 03:48:56 +00:00
Plugin settings - Fixed settings not being singletons
Data model visualization - Order properties by their declaration
This commit is contained in:
1 parent
ef62e30c6f
commit
c93a743e24
5 files changed
+40
-24
No files matched your search
@@ -136,7 +136,7 @@ namespace Artemis.Core.DataModelExpansions
|
||||
/// <typeparam name="T">The type of data model you expect</typeparam>
|
||||
/// <param name="key">The unique key of the dynamic data model</param>
|
||||
/// <returns>If found, the dynamic data model otherwise <c>null</c></returns>
|
||||
public T DynamicChild<T>(string key) where T : DataModel
|
||||
public T? DynamicChild<T>(string key) where T : DataModel
|
||||
{
|
||||
_dynamicDataModels.TryGetValue(key, out DataModel value);
|
||||
return value as T;
|
||||
|
||||
Reference in new issue
Block a user