Show only On and Off for Brave Mode

This commit is contained in:
Peer Hogeterp committed 2026-09-23 13:18:48 +02:00
1 parent 672abb4082
commit 465497592b
6 files changed
+29 -5

No files matched your search

@@ -13,6 +13,12 @@ public sealed class ToolSettingsFieldDefinition
[JsonPropertyName("enum")]
public List<string> EnumValues { get; init; } = [];
/// <summary>
/// Value shown and saved for an optional choice when no value has been stored yet.
/// A choice with a default does not offer a separate "Not set" option.
/// </summary>
public string DefaultValue { get; init; } = string.Empty;
/// <summary>
/// Name of a list of options the app maintains, as an alternative to spelling them out in
/// the enum field. See the tool settings option sources for the available names.
@@ -44,4 +50,4 @@ public sealed class ToolSettingsFieldDefinition
public IReadOnlyList<ToolSettingsOption> GetOptions() => string.IsNullOrWhiteSpace(this.OptionSource)
? this.EnumValues.Select(value => new ToolSettingsOption(value, value)).ToList()
: ToolSettingsOptionSources.Resolve(this.OptionSource);
}
}