mirror of
https://github.com/MindWorkAI/AI-Studio.git
synced 2025-08-21 04:12:56 +00:00
Update IsPluginEnabled to include configuration plugins
This commit is contained in:
parent
fa48dd8383
commit
a44eaa407c
@ -159,7 +159,7 @@ public sealed class SettingsManager
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="plugin">The plugin to check.</param>
|
/// <param name="plugin">The plugin to check.</param>
|
||||||
/// <returns>True, when the plugin is enabled, false otherwise.</returns>
|
/// <returns>True, when the plugin is enabled, false otherwise.</returns>
|
||||||
public bool IsPluginEnabled(IPluginMetadata plugin) => this.ConfigurationData.EnabledPlugins.Contains(plugin.Id);
|
public bool IsPluginEnabled(IPluginMetadata plugin) => plugin.Type is PluginType.CONFIGURATION || this.ConfigurationData.EnabledPlugins.Contains(plugin.Id);
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Returns the active language plugin.
|
/// Returns the active language plugin.
|
||||||
|
Loading…
Reference in New Issue
Block a user