diff options
author | sr55 <[email protected]> | 2015-07-05 12:12:01 +0000 |
---|---|---|
committer | sr55 <[email protected]> | 2015-07-05 12:12:01 +0000 |
commit | e32a4681e63cfb7842488842047da1b8f14c72c5 (patch) | |
tree | 54314f5debe1d73237d31b24d1e23609c436f946 /win/CS/HandBrakeWPF/ViewModels | |
parent | 32363c86e5b1847289d9cc0dc741a5f536176225 (diff) |
WinGui: Initial Implementation of the json preset export code.
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@7347 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'win/CS/HandBrakeWPF/ViewModels')
-rw-r--r-- | win/CS/HandBrakeWPF/ViewModels/MainViewModel.cs | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/win/CS/HandBrakeWPF/ViewModels/MainViewModel.cs b/win/CS/HandBrakeWPF/ViewModels/MainViewModel.cs index 60b0c74a5..4f4fbaf2d 100644 --- a/win/CS/HandBrakeWPF/ViewModels/MainViewModel.cs +++ b/win/CS/HandBrakeWPF/ViewModels/MainViewModel.cs @@ -1827,10 +1827,10 @@ namespace HandBrakeWPF.ViewModels {
SaveFileDialog savefiledialog = new SaveFileDialog
{
- Filter = "plist|*.plist",
+ Filter = "json|*.json",
CheckPathExists = true,
AddExtension = true,
- DefaultExt = ".plist",
+ DefaultExt = ".json",
OverwritePrompt = true,
FilterIndex = 0
};
@@ -1841,10 +1841,7 @@ namespace HandBrakeWPF.ViewModels if (!string.IsNullOrEmpty(filename))
{
- PlistFactory.Export(
- savefiledialog.FileName,
- this.selectedPreset,
- HandBrakeUtils.Build.ToString(CultureInfo.InvariantCulture));
+ this.presetService.Export(savefiledialog.FileName, this.selectedPreset, HBConfigurationFactory.Create());
}
}
else
|