This commit is contained in:
meelstorm
2025-10-01 08:17:10 +02:00
parent 1aecb79ade
commit 63afb2dcfb
17 changed files with 168 additions and 55 deletions

View File

@@ -16,6 +16,10 @@ public class UIConfiguration: ISettings
public bool ProtectSettingsWithPassword { get; set; }=false;
public bool ShowPauseButton { get; set; }=false;
public bool ShowTestModeButton { get; set; } = false;
public List<ErrorShortName> ErrorShortNames { get; set; } = new List<ErrorShortName>();
public void RegisterSettings(InspectronSettings settings)
@@ -24,6 +28,8 @@ public class UIConfiguration: ISettings
settings.RegisterSimple(this, () => this.AdminPassword, "System", "Password");
settings.RegisterSimple(this, () => this.ProtectSettingsWithPassword, "System", nameof(ProtectSettingsWithPassword));
settings.RegisterSimple(this, () => this.ErrorShortNames, "Errors", "Error short names");
settings.RegisterSimple(this, () => this.ShowPauseButton, "System", nameof(ShowPauseButton));
settings.RegisterSimple(this, () => this.ShowTestModeButton, "System", nameof(ShowTestModeButton));
}