summaryrefslogtreecommitdiffstats
path: root/win/CS/HandBrakeWPF/Services/Presets/PresetService.cs
diff options
context:
space:
mode:
authorScott <[email protected]>2015-10-11 22:05:16 +0100
committerScott <[email protected]>2015-10-16 22:30:20 +0100
commit5eb711545f4b3fbda67f199f7dd68db920381be8 (patch)
tree197d3c541413948792cf6ca596d550a2a40ae93b /win/CS/HandBrakeWPF/Services/Presets/PresetService.cs
parent24ac78a88cec224379acd8533fcfaaa42a5cbd94 (diff)
Fixing the storage of user presets. Need to confirm PresetContainer format.
Diffstat (limited to 'win/CS/HandBrakeWPF/Services/Presets/PresetService.cs')
-rw-r--r--win/CS/HandBrakeWPF/Services/Presets/PresetService.cs4
1 files changed, 3 insertions, 1 deletions
diff --git a/win/CS/HandBrakeWPF/Services/Presets/PresetService.cs b/win/CS/HandBrakeWPF/Services/Presets/PresetService.cs
index 5707bac27..763ea8fd1 100644
--- a/win/CS/HandBrakeWPF/Services/Presets/PresetService.cs
+++ b/win/CS/HandBrakeWPF/Services/Presets/PresetService.cs
@@ -693,7 +693,9 @@ namespace HandBrakeWPF.Services.Presets
using (FileStream strm = new FileStream(this.userPresetFile, FileMode.Create, FileAccess.Write))
{
List<Preset> userPresets = this.presets.Where(p => p.IsBuildIn == false).ToList();
- string presetsJson = JsonConvert.SerializeObject(userPresets, Formatting.Indented, settings);
+ PresetTransportContainer container = JsonPresetFactory.ExportPresets(userPresets, HBConfigurationFactory.Create());
+
+ string presetsJson = JsonConvert.SerializeObject(container, Formatting.Indented, settings);
using (StreamWriter writer = new StreamWriter(strm))
{