Skip to content

Commit

Permalink
Disable Gamut/ColorTemp controls for Disabled Visual Mode #3503
Browse files Browse the repository at this point in the history
  • Loading branch information
seerge committed Dec 21, 2024
1 parent 1a94ed0 commit c233e9a
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions app/Settings.cs
Original file line number Diff line number Diff line change
Expand Up @@ -410,6 +410,7 @@ public void InitVisual()

comboVisual.SelectedValueChanged += ComboVisual_SelectedValueChanged;
comboVisual.Visible = true;
VisualiseDisabled();

comboColorTemp.SelectedValueChanged += ComboVisual_SelectedValueChanged;
comboColorTemp.Visible = true;
Expand Down Expand Up @@ -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()
Expand All @@ -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
Expand Down

0 comments on commit c233e9a

Please sign in to comment.