mirror of
https://github.com/MindWorkAI/AI-Studio.git
synced 2026-03-29 19:11:38 +00:00
make component dictionaries readonly
This commit is contained in:
parent
a5149e460f
commit
96d0b9e959
@ -40,12 +40,12 @@ public partial class AssistantDynamic : AssistantBaseCore<SettingsDialogDynamic>
|
|||||||
private bool showFooterProfileSelection = true;
|
private bool showFooterProfileSelection = true;
|
||||||
private PluginAssistants? assistantPlugin;
|
private PluginAssistants? assistantPlugin;
|
||||||
|
|
||||||
private Dictionary<string, string> inputFields = new();
|
private readonly Dictionary<string, string> inputFields = new();
|
||||||
private Dictionary<string, string> dropdownFields = new();
|
private readonly Dictionary<string, string> dropdownFields = new();
|
||||||
private Dictionary<string, bool> switchFields = new();
|
private readonly Dictionary<string, bool> switchFields = new();
|
||||||
private Dictionary<string, WebContentState> webContentFields = new();
|
private readonly Dictionary<string, WebContentState> webContentFields = new();
|
||||||
private Dictionary<string, FileContentState> fileContentFields = new();
|
private readonly Dictionary<string, FileContentState> fileContentFields = new();
|
||||||
private Dictionary<string, string> colorPickerFields = new();
|
private readonly Dictionary<string, string> colorPickerFields = new();
|
||||||
private readonly Dictionary<string, string> imageCache = new();
|
private readonly Dictionary<string, string> imageCache = new();
|
||||||
private string pluginPath = string.Empty;
|
private string pluginPath = string.Empty;
|
||||||
private const string PLUGIN_SCHEME = "plugin://";
|
private const string PLUGIN_SCHEME = "plugin://";
|
||||||
@ -174,7 +174,6 @@ public partial class AssistantDynamic : AssistantBaseCore<SettingsDialogDynamic>
|
|||||||
{
|
{
|
||||||
entry.Value.Content = string.Empty;
|
entry.Value.Content = string.Empty;
|
||||||
}
|
}
|
||||||
|
|
||||||
foreach (var entry in this.colorPickerFields)
|
foreach (var entry in this.colorPickerFields)
|
||||||
{
|
{
|
||||||
this.colorPickerFields[entry.Key] = string.Empty;
|
this.colorPickerFields[entry.Key] = string.Empty;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user