diff options
author | Scott <[email protected]> | 2015-12-14 19:59:27 +0000 |
---|---|---|
committer | Scott <[email protected]> | 2015-12-14 20:12:29 +0000 |
commit | cd2eb1c2b13d15dd58842d8eabea978075979554 (patch) | |
tree | b65472c608e76c154a54e6c2599fd064a8e72ef3 /win/CS/HandBrakeWPF/Services/Presets/PresetService.cs | |
parent | 808c4c5e353e08e32d54c48dce96598996b1c91c (diff) |
WinGui: Ability to Force Preset updates change tidy up
Diffstat (limited to 'win/CS/HandBrakeWPF/Services/Presets/PresetService.cs')
-rw-r--r-- | win/CS/HandBrakeWPF/Services/Presets/PresetService.cs | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/win/CS/HandBrakeWPF/Services/Presets/PresetService.cs b/win/CS/HandBrakeWPF/Services/Presets/PresetService.cs index de1aefbf8..6e6935f00 100644 --- a/win/CS/HandBrakeWPF/Services/Presets/PresetService.cs +++ b/win/CS/HandBrakeWPF/Services/Presets/PresetService.cs @@ -43,7 +43,7 @@ namespace HandBrakeWPF.Services.Presets {
#region Private Variables
- public const int ForcePresetReset = 0;
+ public const int ForcePresetReset = 2;
public static string UserPresetCatgoryName = "User Presets";
private readonly string presetFile = Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData) + "\\HandBrake\\presets.json";
private readonly ObservableCollection<Preset> presets = new ObservableCollection<Preset>();
@@ -544,11 +544,13 @@ namespace HandBrakeWPF.Services.Presets }
// Force Upgrade of presets
- if (this.userSettingService.GetUserSetting<int>(UserSettingConstants.ForcePresetReset) > ForcePresetReset)
+ if (this.userSettingService.GetUserSetting<int>(UserSettingConstants.ForcePresetReset) < ForcePresetReset)
{
+ this.userSettingService.SetUserSetting(UserSettingConstants.ForcePresetReset, ForcePresetReset);
+
string fileName = this.ArchivePresetFile(this.presetFile);
this.errorService.ShowMessageBox(
- Resources.PresetService_PresetsOutOfDate
+ Resources.Presets_PresetForceReset
+ Environment.NewLine + Environment.NewLine + Resources.PresetService_ArchiveFile + fileName,
Resources.PresetService_UnableToLoad,
MessageBoxButton.OK,
|