mirror of
https://github.com/Artemis-RGB/Artemis
synced 2026-11-12 03:48:56 +00:00
Data model debugger - Added module filtering
Data model debugger - Added search input (disabled & not yet implemented) Data model debugger - Finished list support
This commit is contained in:
1 parent
ac45c4d5d3
commit
3bc1da8ca6
10 files changed
+198
-47
No files matched your search
@@ -64,6 +64,15 @@ namespace Artemis.Core.Services
|
||||
}
|
||||
}
|
||||
|
||||
public DataModel GetPluginDataModel(Plugin plugin)
|
||||
{
|
||||
if (plugin is Module module)
|
||||
return module.InternalDataModel;
|
||||
if (plugin is BaseDataModelExpansion dataModelExpansion)
|
||||
return dataModelExpansion.InternalDataModel;
|
||||
return null;
|
||||
}
|
||||
|
||||
private void PluginServiceOnPluginEnabled(object sender, PluginEventArgs e)
|
||||
{
|
||||
if (e.PluginInfo.Instance is Module module && module.InternalExpandsMainDataModel)
|
||||
|
||||
Reference in new issue
Block a user