mirror of
https://github.com/Artemis-RGB/Artemis
synced 2026-11-12 03:48:56 +00:00
Conditions - Big refactor to prepare for conditional databindings
Conditions - Improved list-condition functionality
This commit is contained in:
1 parent
a646ff95ed
commit
8aba0a55ec
55 files changed
+1382
-1608
No files matched your search
@@ -11,9 +11,9 @@ namespace Artemis.Core.Services
|
||||
public DataModelService(IPluginService pluginService)
|
||||
{
|
||||
// Add data models of already loaded plugins
|
||||
foreach (var module in pluginService.GetPluginsOfType<Module>())
|
||||
foreach (var module in pluginService.GetPluginsOfType<Module>().Where(p => p.Enabled))
|
||||
AddModuleDataModel(module);
|
||||
foreach (var dataModelExpansion in pluginService.GetPluginsOfType<BaseDataModelExpansion>())
|
||||
foreach (var dataModelExpansion in pluginService.GetPluginsOfType<BaseDataModelExpansion>().Where(p => p.Enabled))
|
||||
AddDataModelExpansionDataModel(dataModelExpansion);
|
||||
|
||||
// Add data models of new plugins when they get enabled
|
||||
|
||||
@@ -19,7 +19,7 @@ namespace Artemis.Core.Services
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// <para>A wrapper around plugin settings for internal use.</para>
|
||||
/// <para>A wrapper around plugin settings for miscellaneous use outside plugins</para>
|
||||
/// <para>Do not inject into a plugin, for plugins inject <see cref="PluginSettings" /> instead.</para>
|
||||
/// </summary>
|
||||
public interface ISettingsService : IProtectedArtemisService
|
||||
|
||||
Reference in new issue
Block a user