From 3c3ac7ad93a7b644a327ac8027a4593395b0ba24 Mon Sep 17 00:00:00 2001 From: sr55 Date: Tue, 11 Sep 2012 19:27:40 +0000 Subject: WinGui: Couple fixes to Pictures settings and add presets. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@4959 b64f7644-9d1e-0410-96f1-a4d463321fa5 --- win/CS/HandBrakeWPF/ViewModels/MainViewModel.cs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'win/CS/HandBrakeWPF/ViewModels/MainViewModel.cs') diff --git a/win/CS/HandBrakeWPF/ViewModels/MainViewModel.cs b/win/CS/HandBrakeWPF/ViewModels/MainViewModel.cs index e62abf174..86c8d3a14 100644 --- a/win/CS/HandBrakeWPF/ViewModels/MainViewModel.cs +++ b/win/CS/HandBrakeWPF/ViewModels/MainViewModel.cs @@ -12,6 +12,7 @@ namespace HandBrakeWPF.ViewModels using System; using System.Collections.Generic; using System.Diagnostics; + using System.Globalization; using System.IO; using System.Linq; using System.Windows; @@ -1412,7 +1413,8 @@ namespace HandBrakeWPF.ViewModels /// public void PresetExport() { - VistaSaveFileDialog savefiledialog = new VistaSaveFileDialog { Filter = "plist|*.plist", CheckPathExists = true }; + VistaSaveFileDialog savefiledialog = new VistaSaveFileDialog + { Filter = "plist|*.plist", CheckPathExists = true, AddExtension = true }; if (this.selectedPreset != null) { savefiledialog.ShowDialog(); @@ -1420,7 +1422,7 @@ namespace HandBrakeWPF.ViewModels if (filename != null) { - PlistUtility.Export(savefiledialog.FileName, this.selectedPreset, userSettingService.GetUserSetting(ASUserSettingConstants.HandBrakeBuild).ToString()); + PlistUtility.Export(savefiledialog.FileName, this.selectedPreset, userSettingService.GetUserSetting(ASUserSettingConstants.HandBrakeBuild).ToString(CultureInfo.InvariantCulture)); } } else -- cgit v1.2.3