From 5eb711545f4b3fbda67f199f7dd68db920381be8 Mon Sep 17 00:00:00 2001 From: Scott Date: Sun, 11 Oct 2015 22:05:16 +0100 Subject: Fixing the storage of user presets. Need to confirm PresetContainer format. --- win/CS/HandBrakeWPF/Services/Presets/PresetService.cs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'win/CS') 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 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)) { -- cgit v1.2.3