Added missed registration for new config option

This commit is contained in:
Thorsten Sommer 2026-01-12 19:26:30 +01:00
parent 5df6fbcb12
commit 6d622e41b5
Signed by: tsommer
GPG Key ID: 371BBA77A02C0108
2 changed files with 7 additions and 0 deletions

View File

@ -67,6 +67,9 @@ public sealed class PluginConfiguration(bool isInternal, LuaState state, PluginT
// Config: enabled preview features
ManagedConfiguration.TryProcessConfiguration(x => x.App, x => x.EnabledPreviewFeatures, this.Id, settingsTable, dryRun);
// Config: hide some assistants?
ManagedConfiguration.TryProcessConfiguration(x => x.App, x => x.HiddenAssistants, this.Id, settingsTable, dryRun);
// Handle configured LLM providers:
PluginConfigurationObject.TryParse(PluginConfigurationObjectType.LLM_PROVIDER, x => x.Providers, x => x.NextProviderNum, mainTable, this.Id, ref this.configObjects, dryRun);

View File

@ -177,6 +177,10 @@ public static partial class PluginFactory
if(ManagedConfiguration.IsConfigurationLeftOver(x => x.App, x => x.UseTranscriptionProvider, AVAILABLE_PLUGINS))
wasConfigurationChanged = true;
// Check for hidden assistants:
if(ManagedConfiguration.IsConfigurationLeftOver(x => x.App, x => x.HiddenAssistants, AVAILABLE_PLUGINS))
wasConfigurationChanged = true;
if (wasConfigurationChanged)
{
await SETTINGS_MANAGER.StoreSettings();