diff options
author | sr55 <[email protected]> | 2019-04-20 22:51:01 +0100 |
---|---|---|
committer | sr55 <[email protected]> | 2019-04-20 22:51:42 +0100 |
commit | 8ae989f31db31c43c069efc2c1fd8b1c2b65ef8f (patch) | |
tree | 269238f808d78c4b83d3a203f27839c3619230e5 /win/CS/HandBrakeWPF/Converters | |
parent | 4e0cf3ef3d5decfe30f26306bbc969c00b3c0861 (diff) |
WinGui: New option to control the file overwrite default behaviour. Overwrite or Ask.
Diffstat (limited to 'win/CS/HandBrakeWPF/Converters')
-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;
}
|