summaryrefslogtreecommitdiffstats
path: root/win/CS/HandBrakeWPF/Converters/EnumComboConverter.cs
diff options
context:
space:
mode:
Diffstat (limited to 'win/CS/HandBrakeWPF/Converters/EnumComboConverter.cs')
-rw-r--r--win/CS/HandBrakeWPF/Converters/EnumComboConverter.cs15
1 files changed, 3 insertions, 12 deletions
diff --git a/win/CS/HandBrakeWPF/Converters/EnumComboConverter.cs b/win/CS/HandBrakeWPF/Converters/EnumComboConverter.cs
index bb6a4be61..a4b8b6df0 100644
--- a/win/CS/HandBrakeWPF/Converters/EnumComboConverter.cs
+++ b/win/CS/HandBrakeWPF/Converters/EnumComboConverter.cs
@@ -65,10 +65,7 @@ namespace HandBrakeWPF.Converters
{
return EnumHelper<Mixdown>.GetEnumDisplayValues(typeof(Mixdown));
}
- if (value is IEnumerable<AudioEncoder>)
- {
- return EnumHelper<AudioEncoder>.GetEnumDisplayValues(typeof(AudioEncoder));
- }
+
if (value is IEnumerable<PresetPictureSettingsMode>)
{
return EnumHelper<PresetPictureSettingsMode>.GetEnumDisplayValues(typeof(PresetPictureSettingsMode));
@@ -113,10 +110,7 @@ namespace HandBrakeWPF.Converters
{
return EnumHelper<Mixdown>.GetDisplay((Mixdown)value);
}
- if (targetType == typeof(AudioEncoder) || value.GetType() == typeof(AudioEncoder))
- {
- return EnumHelper<AudioEncoder>.GetDisplay((AudioEncoder)value);
- }
+
if (targetType == typeof(PresetPictureSettingsMode) || value.GetType() == typeof(PresetPictureSettingsMode))
{
return EnumHelper<PresetPictureSettingsMode>.GetDisplay((PresetPictureSettingsMode)value);
@@ -188,10 +182,7 @@ namespace HandBrakeWPF.Converters
{
return EnumHelper<Mixdown>.GetValue(value.ToString());
}
- if (targetType == typeof(AudioEncoder) || value.GetType() == typeof(AudioEncoder))
- {
- return EnumHelper<AudioEncoder>.GetValue(value.ToString());
- }
+
if (targetType == typeof(PresetPictureSettingsMode) || value.GetType() == typeof(PresetPictureSettingsMode))
{
return EnumHelper<PresetPictureSettingsMode>.GetValue(value.ToString());