mirror of
https://github.com/MindWorkAI/AI-Studio.git
synced 2025-05-03 09:39:47 +00:00
24 lines
979 B
C#
24 lines
979 B
C#
using AIStudio.Settings.DataModel;
|
|
|
|
namespace AIStudio.Components.Settings;
|
|
|
|
public partial class SettingsPanelApp : SettingsPanelBase
|
|
{
|
|
private void UpdatePreviewFeatures(PreviewVisibility previewVisibility)
|
|
{
|
|
this.SettingsManager.ConfigurationData.App.PreviewVisibility = previewVisibility;
|
|
this.SettingsManager.ConfigurationData.App.EnabledPreviewFeatures = previewVisibility.FilterPreviewFeatures(this.SettingsManager.ConfigurationData.App.EnabledPreviewFeatures);
|
|
}
|
|
|
|
private async Task UpdateLangBehaviour(LangBehavior behavior)
|
|
{
|
|
this.SettingsManager.ConfigurationData.App.LanguageBehavior = behavior;
|
|
await this.MessageBus.SendMessage<bool>(this, Event.PLUGINS_RELOADED);
|
|
}
|
|
|
|
private async Task UpdateManuallySelectedLanguage(Guid pluginId)
|
|
{
|
|
this.SettingsManager.ConfigurationData.App.LanguagePluginId = pluginId;
|
|
await this.MessageBus.SendMessage<bool>(this, Event.PLUGINS_RELOADED);
|
|
}
|
|
} |