diff options
author | sr55 <[email protected]> | 2017-09-20 19:25:37 +0100 |
---|---|---|
committer | sr55 <[email protected]> | 2017-09-20 19:25:37 +0100 |
commit | 262097f63114fc167f545e32ac230f39b64bdaf7 (patch) | |
tree | 8b524f9636731ab663f9c07d28ace3bf5721d022 /win/CS/HandBrake.ApplicationServices | |
parent | b37f8bdea2ca939480b865edb9db58404c0d2184 (diff) |
WinGui: Tidy up some warnings that you get when you import WinGui presets into the CLI. #906
Diffstat (limited to 'win/CS/HandBrake.ApplicationServices')
-rw-r--r-- | win/CS/HandBrake.ApplicationServices/Interop/HandBrakePresetService.cs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/win/CS/HandBrake.ApplicationServices/Interop/HandBrakePresetService.cs b/win/CS/HandBrake.ApplicationServices/Interop/HandBrakePresetService.cs index adc9bcbd6..ae3387006 100644 --- a/win/CS/HandBrake.ApplicationServices/Interop/HandBrakePresetService.cs +++ b/win/CS/HandBrake.ApplicationServices/Interop/HandBrakePresetService.cs @@ -91,7 +91,7 @@ namespace HandBrake.ApplicationServices.Interop /// </param>
public static void ExportPreset(string filename, PresetTransportContainer container)
{
- string preset = JsonConvert.SerializeObject(container, Formatting.Indented);
+ string preset = JsonConvert.SerializeObject(container, Formatting.Indented, new JsonSerializerSettings { NullValueHandling = NullValueHandling.Ignore });
using (StreamWriter writer = new StreamWriter(filename))
{
writer.Write(preset);
|