diff options
Diffstat (limited to 'win')
-rw-r--r-- | win/CS/Controls/AudioPanel.cs | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/win/CS/Controls/AudioPanel.cs b/win/CS/Controls/AudioPanel.cs index e07cf1e3a..a7728ae56 100644 --- a/win/CS/Controls/AudioPanel.cs +++ b/win/CS/Controls/AudioPanel.cs @@ -361,6 +361,8 @@ namespace Handbrake.Controls // Set the Advanced Control.
if (!advancedAudio.IsDisposed)
advancedAudio.Track = track;
+
+ this.RefreshEnabledControls();
}
}
}
@@ -587,6 +589,28 @@ namespace Handbrake.Controls #region Private Functions
/// <summary>
+ /// Refresh the enabled controls
+ /// </summary>
+ private void RefreshEnabledControls()
+ {
+ // Configure the widgets with values
+ if (drp_audioEncoder.Text.Contains("Passthru"))
+ {
+ drp_audioMix.Enabled = drp_audioBitrate.Enabled = drp_audioSample.Enabled = btn_AdvancedAudio.Enabled = false;
+ }
+ else
+ {
+ drp_audioMix.Enabled = drp_audioBitrate.Enabled = drp_audioSample.Enabled = btn_AdvancedAudio.Enabled = true;
+ }
+
+ if (drp_audioEncoder.Text.Contains("Flac"))
+ {
+ drp_audioBitrate.Enabled = false;
+ }
+ }
+
+
+ /// <summary>
/// Attempt to automatically select the correct audio tracks based on the users settings.
/// </summary>
private void AutomaticTrackSelection()
|