summaryrefslogtreecommitdiffstats
path: root/win/CS/HandBrakeWPF/Converters/Audio/AudioControlVisibilityConverter.cs
diff options
context:
space:
mode:
Diffstat (limited to 'win/CS/HandBrakeWPF/Converters/Audio/AudioControlVisibilityConverter.cs')
-rw-r--r--win/CS/HandBrakeWPF/Converters/Audio/AudioControlVisibilityConverter.cs16
1 files changed, 2 insertions, 14 deletions
diff --git a/win/CS/HandBrakeWPF/Converters/Audio/AudioControlVisibilityConverter.cs b/win/CS/HandBrakeWPF/Converters/Audio/AudioControlVisibilityConverter.cs
index c22a22319..808fc9a2c 100644
--- a/win/CS/HandBrakeWPF/Converters/Audio/AudioControlVisibilityConverter.cs
+++ b/win/CS/HandBrakeWPF/Converters/Audio/AudioControlVisibilityConverter.cs
@@ -1,5 +1,5 @@
// --------------------------------------------------------------------------------------------------------------------
-// <copyright file="AudioControlVisibilityConverter.cs" company="HandBrake Project (https://handbrake.fr)">
+// <copyright file="AudioControlVisibilityConverter.cs" company="HandBrake Project (http://handbrake.fr)">
// This file is part of the HandBrake source code - It may be used under the terms of the GNU General Public License.
// </copyright>
// <summary>
@@ -20,26 +20,14 @@ namespace HandBrakeWPF.Converters.Audio
{
public object Convert(object[] values, Type targetType, object parameter, CultureInfo culture)
{
- if (values.Length == 3)
+ if (values.Length == 1)
{
bool isVisibile = (bool)values[0];
- bool isPassthru = (bool)values[1];
- AudioEncoder fallbackEncoder = AudioEncoder.ffaac;
-
- if (values[2] != null && values[2].GetType() == typeof(AudioEncoder))
- {
- fallbackEncoder = (AudioEncoder)values[2];
- }
if (!isVisibile)
{
return Visibility.Collapsed;
}
-
- if (fallbackEncoder == AudioEncoder.None && isPassthru)
- {
- return Visibility.Collapsed;
- }
}
return Visibility.Visible;