Update IsPluginEnabled to include configuration plugins

This commit is contained in:
Thorsten Sommer 2025-06-01 20:52:17 +02:00
parent fa48dd8383
commit a44eaa407c
Signed by: tsommer
GPG Key ID: 371BBA77A02C0108

View File

@ -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.