diff options
Diffstat (limited to 'win/CS/HandBrake.ApplicationServices/Services')
-rw-r--r-- | win/CS/HandBrake.ApplicationServices/Services/PresetService.cs | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/win/CS/HandBrake.ApplicationServices/Services/PresetService.cs b/win/CS/HandBrake.ApplicationServices/Services/PresetService.cs index bd125c084..227a6eef6 100644 --- a/win/CS/HandBrake.ApplicationServices/Services/PresetService.cs +++ b/win/CS/HandBrake.ApplicationServices/Services/PresetService.cs @@ -60,7 +60,12 @@ namespace HandBrake.ApplicationServices.Services /// </summary>
public PresetService()
{
- // this.Presets = CollectionViewSource.GetDefaultView(this.presets);
+ // If the preset file doesn't exist. Create it.
+ if (!File.Exists(this.builtInPresetFile))
+ {
+ this.UpdateBuiltInPresets(string.Empty);
+ }
+
this.LoadPresets();
}
@@ -371,7 +376,7 @@ namespace HandBrake.ApplicationServices.Services }
reader.Close();
- }
+ }
}
catch (Exception exc)
{
|