summaryrefslogtreecommitdiffstats
path: root/win/CS/HandBrakeWPF/ViewModels/OptionsViewModel.cs
diff options
context:
space:
mode:
Diffstat (limited to 'win/CS/HandBrakeWPF/ViewModels/OptionsViewModel.cs')
-rw-r--r--win/CS/HandBrakeWPF/ViewModels/OptionsViewModel.cs17
1 files changed, 4 insertions, 13 deletions
diff --git a/win/CS/HandBrakeWPF/ViewModels/OptionsViewModel.cs b/win/CS/HandBrakeWPF/ViewModels/OptionsViewModel.cs
index bb303aef5..38c1dcd55 100644
--- a/win/CS/HandBrakeWPF/ViewModels/OptionsViewModel.cs
+++ b/win/CS/HandBrakeWPF/ViewModels/OptionsViewModel.cs
@@ -1417,22 +1417,13 @@ namespace HandBrakeWPF.ViewModels
// Days between update checks
this.checkForUpdatesFrequencies.Clear();
- this.checkForUpdatesFrequencies.Add("Daily");
this.checkForUpdatesFrequencies.Add("Weekly");
this.checkForUpdatesFrequencies.Add("Monthly");
- // TODO Refactor this.
- switch (this.userSettingService.GetUserSetting<int>(UserSettingConstants.DaysBetweenUpdateCheck))
- {
- case 1:
- this.CheckForUpdatesFrequency = 0;
- break;
- case 7:
- this.CheckForUpdatesFrequency = 1;
- break;
- default:
- this.CheckForUpdatesFrequency = 2;
- break;
+ this.CheckForUpdatesFrequency = this.userSettingService.GetUserSetting<int>(UserSettingConstants.DaysBetweenUpdateCheck);
+ if (this.CheckForUpdatesFrequency > 1)
+ {
+ this.CheckForUpdatesFrequency = 1;
}
// On Encode Completeion Action