diff options
Diffstat (limited to 'win/C#/frmOptions.cs')
-rw-r--r-- | win/C#/frmOptions.cs | 33 |
1 files changed, 20 insertions, 13 deletions
diff --git a/win/C#/frmOptions.cs b/win/C#/frmOptions.cs index 66e5460d5..a314046e4 100644 --- a/win/C#/frmOptions.cs +++ b/win/C#/frmOptions.cs @@ -16,45 +16,41 @@ namespace Handbrake {
public partial class frmOptions : Form
{
+ private frmMain mainWindow;
/// <summary>
/// When the form loads, Initialise all the setting components with their correct values
/// </summary>
- public frmOptions()
+ public frmOptions(frmMain window)
{
InitializeComponent();
+ mainWindow = window;
+
+ // Enable Tooltips.
+ if (Properties.Settings.Default.tooltipEnable == "Checked")
+ ToolTip.Active = true;
+ // Setup Widgets to match settings.
if (Properties.Settings.Default.updateStatus == "Checked")
- {
check_updateCheck.CheckState = CheckState.Checked;
- }
if (Properties.Settings.Default.defaultSettings == "Checked")
- {
check_userDefaultSettings.CheckState = CheckState.Checked;
- }
+
drp_processors.Text = Properties.Settings.Default.Processors;
drp_Priority.Text = Properties.Settings.Default.processPriority;
drp_completeOption.Text = Properties.Settings.Default.CompletionOption;
if (Properties.Settings.Default.tooltipEnable == "Checked")
- {
check_tooltip.CheckState = CheckState.Checked;
- }
if (Properties.Settings.Default.autoNaming == "Checked")
- {
check_autoNaming.CheckState = CheckState.Checked;
- }
if (Properties.Settings.Default.drive_detection == "Checked")
- {
btn_drive_detect.CheckState = CheckState.Checked;
- }
if (Properties.Settings.Default.cli_minimized == "Checked")
- {
check_cli_minimized.CheckState = CheckState.Checked;
- }
text_an_path.Text = Properties.Settings.Default.autoNamePath;
@@ -92,6 +88,16 @@ namespace Handbrake private void check_tooltip_CheckedChanged(object sender, EventArgs e)
{
Properties.Settings.Default.tooltipEnable = check_tooltip.CheckState.ToString();
+ if (check_tooltip.Checked)
+ {
+ ToolTip.Active = true;
+ mainWindow.ToolTip.Active = true;
+ }
+ else
+ {
+ ToolTip.Active = false;
+ mainWindow.ToolTip.Active = false;
+ }
}
private void drp_completeOption_SelectedIndexChanged(object sender, EventArgs e)
@@ -132,5 +138,6 @@ namespace Handbrake }
#endregion
+
}
}
\ No newline at end of file |