diff options
Diffstat (limited to 'win/C#/frmOptions.cs')
-rw-r--r-- | win/C#/frmOptions.cs | 30 |
1 files changed, 27 insertions, 3 deletions
diff --git a/win/C#/frmOptions.cs b/win/C#/frmOptions.cs index d6c9489c6..606d9d773 100644 --- a/win/C#/frmOptions.cs +++ b/win/C#/frmOptions.cs @@ -121,7 +121,18 @@ namespace Handbrake check_inGuiStatus.CheckState = CheckState.Checked;
// Days between update checks
- numeric_updateCheckDays.Value = Properties.Settings.Default.daysBetweenUpdateCheck;
+ switch (Properties.Settings.Default.daysBetweenUpdateCheck)
+ {
+ case 1:
+ drop_updateCheckDays.SelectedIndex = 0;
+ break;
+ case 7:
+ drop_updateCheckDays.SelectedIndex = 1;
+ break;
+ case 30:
+ drop_updateCheckDays.SelectedIndex = 2;
+ break;
+ }
// x264 step
CultureInfo culture = CultureInfo.CreateSpecificCulture("en-US");
@@ -295,9 +306,20 @@ namespace Handbrake Properties.Settings.Default.enocdeStatusInGui = check_inGuiStatus.Checked;
}
- private void numeric_updateCheckDays_ValueChanged(object sender, EventArgs e)
+ private void drop_updateCheckDays_SelectedIndexChanged(object sender, EventArgs e)
{
- Properties.Settings.Default.daysBetweenUpdateCheck = (int)numeric_updateCheckDays.Value;
+ switch (drop_updateCheckDays.SelectedIndex)
+ {
+ case 0:
+ Properties.Settings.Default.daysBetweenUpdateCheck = 1;
+ break;
+ case 1:
+ Properties.Settings.Default.daysBetweenUpdateCheck = 7;
+ break;
+ case 2:
+ Properties.Settings.Default.daysBetweenUpdateCheck = 30;
+ break;
+ }
}
private void x264step_SelectedIndexChanged(object sender, EventArgs e)
@@ -331,5 +353,7 @@ namespace Handbrake this.Close();
}
+
+
}
}
\ No newline at end of file |