diff --git a/app/Settings.cs b/app/Settings.cs index 19142c70..91703ead 100644 --- a/app/Settings.cs +++ b/app/Settings.cs @@ -410,6 +410,7 @@ public void InitVisual() comboVisual.SelectedValueChanged += ComboVisual_SelectedValueChanged; comboVisual.Visible = true; + VisualiseDisabled(); comboColorTemp.SelectedValueChanged += ComboVisual_SelectedValueChanged; comboColorTemp.Visible = true; @@ -454,6 +455,7 @@ private void ComboGamut_SelectedValueChanged(object? sender, EventArgs e) private void ComboVisual_SelectedValueChanged(object? sender, EventArgs e) { VisualControl.SetVisual((SplendidCommand)comboVisual.SelectedValue, (int)comboColorTemp.SelectedValue); + VisualiseDisabled(); } public void VisualiseBrightness() @@ -467,6 +469,11 @@ public void VisualiseBrightness() }); } + public void VisualiseDisabled() + { + comboGamut.Enabled = comboColorTemp.Enabled = (SplendidCommand)AppConfig.Get("visual") != SplendidCommand.Disabled; + } + public void VisualiseGamut() { Invoke(delegate