diff options
Diffstat (limited to 'win/C#/frmMain.cs')
-rw-r--r-- | win/C#/frmMain.cs | 55 |
1 files changed, 29 insertions, 26 deletions
diff --git a/win/C#/frmMain.cs b/win/C#/frmMain.cs index 97db9218d..094587357 100644 --- a/win/C#/frmMain.cs +++ b/win/C#/frmMain.cs @@ -68,32 +68,43 @@ namespace Handbrake Version.Text = "Version " + Properties.Settings.Default.CliVersion;
// update the status
- lblStatus.Text = "Checking for updates ...";
- // redraw the splash screen
- Application.DoEvents();
- // Run the update checker.
if (Properties.Settings.Default.updateStatus == "Checked")
+ {
+ lblStatus.Text = "Checking for updates ...";
+ // redraw the splash screen
+ Application.DoEvents();
+ // Run the update checker.
updateCheck();
- Thread.Sleep(200);
+ Thread.Sleep(200);
+ }
// Update the presets
- lblStatus.Text = "Updaing Presets ...";
- Application.DoEvents();
- updatePresets();
- Thread.Sleep(200);
+ if (Properties.Settings.Default.updatePresets == "Checked")
+ {
+ lblStatus.Text = "Updaing Presets ...";
+ Application.DoEvents();
+ updatePresets();
+ Thread.Sleep(200);
+ }
// Now load the users default if required. (Will overide the above setting)
- lblStatus.Text = "Loading User Default Settings...";
- Application.DoEvents();
- loadNormalPreset();
- loadUserDefaults();
- Thread.Sleep(100);
+ if (Properties.Settings.Default.defaultSettings == "Checked")
+ {
+ lblStatus.Text = "Loading User Default Settings...";
+ Application.DoEvents();
+ loadNormalPreset();
+ loadUserDefaults();
+ Thread.Sleep(100);
+ }
// Enable or disable tooltips
- lblStatus.Text = "Loading Tooltips ...";
- Application.DoEvents();
- tooltip();
- Thread.Sleep(100);
+ if (Properties.Settings.Default.tooltipEnable == "Checked")
+ {
+ lblStatus.Text = "Loading Tooltips ...";
+ Application.DoEvents();
+ ToolTip.Active = true;
+ Thread.Sleep(100);
+ }
// Hide the preset bar if required.
hidePresetBar();
@@ -161,14 +172,6 @@ namespace Handbrake }
}
- private void tooltip()
- {
- if (Properties.Settings.Default.tooltipEnable == "Checked")
- {
- ToolTip.Active = true;
- }
- }
-
private void hidePresetBar()
{
if (Properties.Settings.Default.hidePresets == "Checked")
|