}\r
}\r
\r
+ /// <summary>\r
+ /// Looks up a localized string similar to HandBrake is unable to upgrade your presets file to a new version format.\r
+ ///Your preset file will be archived and new one created. You will need to re-create your own presets..\r
+ /// </summary>\r
+ public static string Presets_PresetForceReset {\r
+ get {\r
+ return ResourceManager.GetString("Presets_PresetForceReset", resourceCulture);\r
+ }\r
+ }\r
+ \r
/// <summary>\r
/// Looks up a localized string similar to The Built-in presets have been reset..\r
/// </summary>\r
<data name="ScanService_ScanStopFailed" xml:space="preserve">\r
<value>An error occured when trying to stop the scan. Please restart HandBrake.</value>\r
</data>\r
+ <data name="Presets_PresetForceReset" xml:space="preserve">\r
+ <value>HandBrake is unable to upgrade your presets file to a new version format.\r
+Your preset file will be archived and new one created. You will need to re-create your own presets.</value>\r
+ </data>\r
</root>
\ No newline at end of file
{\r
#region Private Variables\r
\r
- public const int ForcePresetReset = 0;\r
+ public const int ForcePresetReset = 2;\r
public static string UserPresetCatgoryName = "User Presets";\r
private readonly string presetFile = Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData) + "\\HandBrake\\presets.json";\r
private readonly ObservableCollection<Preset> presets = new ObservableCollection<Preset>();\r
}\r
\r
// Force Upgrade of presets\r
- if (this.userSettingService.GetUserSetting<int>(UserSettingConstants.ForcePresetReset) > ForcePresetReset)\r
+ if (this.userSettingService.GetUserSetting<int>(UserSettingConstants.ForcePresetReset) < ForcePresetReset)\r
{\r
+ this.userSettingService.SetUserSetting(UserSettingConstants.ForcePresetReset, ForcePresetReset);\r
+\r
string fileName = this.ArchivePresetFile(this.presetFile);\r
this.errorService.ShowMessageBox(\r
- Resources.PresetService_PresetsOutOfDate\r
+ Resources.Presets_PresetForceReset\r
+ Environment.NewLine + Environment.NewLine + Resources.PresetService_ArchiveFile + fileName,\r
Resources.PresetService_UnableToLoad,\r
MessageBoxButton.OK,\r
<string>ForcePresetReset</string>\r
</key>\r
<value>\r
- <anyType xmlns:q1="http://www.w3.org/2001/XMLSchema" d4p1:type="q1:int" xmlns:d4p1="http://www.w3.org/2001/XMLSchema-instance">0</anyType>\r
+ <anyType xmlns:q1="http://www.w3.org/2001/XMLSchema" d4p1:type="q1:int" xmlns:d4p1="http://www.w3.org/2001/XMLSchema-instance">2</anyType>\r
</value>\r
</item>\r
</dictionary>
\ No newline at end of file