diff options
Diffstat (limited to 'win/CS/HandBrakeWPF/Converters/EnumComboConverter.cs')
-rw-r--r-- | win/CS/HandBrakeWPF/Converters/EnumComboConverter.cs | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/win/CS/HandBrakeWPF/Converters/EnumComboConverter.cs b/win/CS/HandBrakeWPF/Converters/EnumComboConverter.cs index 644417b26..8d52ec954 100644 --- a/win/CS/HandBrakeWPF/Converters/EnumComboConverter.cs +++ b/win/CS/HandBrakeWPF/Converters/EnumComboConverter.cs @@ -15,6 +15,8 @@ namespace HandBrakeWPF.Converters using System.Windows.Data;
using HandBrake.Interop.Interop.Model.Encoding;
using HandBrake.Interop.Model;
+
+ using HandBrakeWPF.Model.Options;
using HandBrakeWPF.Services.Queue.Model;
using HandBrakeWPF.Utilities;
using OutputFormat = HandBrakeWPF.Services.Encode.Model.Models.OutputFormat;
@@ -87,6 +89,11 @@ namespace HandBrakeWPF.Converters {
return EnumHelper<Sharpen>.GetEnumDisplayValues(typeof(Sharpen));
}
+ if (value is IEnumerable<FileOverwriteBehaviour>)
+ {
+ return EnumHelper<FileOverwriteBehaviour>.GetEnumDisplayValues(typeof(FileOverwriteBehaviour));
+ }
+
// Single Items
if (targetType == typeof(VideoEncoder) || value.GetType() == typeof(VideoEncoder))
@@ -132,6 +139,10 @@ namespace HandBrakeWPF.Converters {
return EnumHelper<Sharpen>.GetDisplay((Sharpen)value);
}
+ if (targetType == typeof(FileOverwriteBehaviour) || value.GetType() == typeof(FileOverwriteBehaviour))
+ {
+ return EnumHelper<FileOverwriteBehaviour>.GetDisplay((FileOverwriteBehaviour)value);
+ }
return null;
}
|