diff options
Diffstat (limited to 'win/C#/Functions/Common.cs')
-rw-r--r-- | win/C#/Functions/Common.cs | 24 |
1 files changed, 15 insertions, 9 deletions
diff --git a/win/C#/Functions/Common.cs b/win/C#/Functions/Common.cs index 1f938a0f9..fbd9b6429 100644 --- a/win/C#/Functions/Common.cs +++ b/win/C#/Functions/Common.cs @@ -126,6 +126,10 @@ namespace Handbrake.Functions // Source tab
#region source
+ // Reset some vaules to stock first to prevent errors.
+ mainWindow.check_iPodAtom.CheckState = CheckState.Unchecked;
+
+ // Now load all the new settings onto the main window
if (presetQuery.Source != "")
mainWindow.text_source.Text = presetQuery.Source;
@@ -160,6 +164,16 @@ namespace Handbrake.Functions mainWindow.drp_videoEncoder.Text = presetQuery.VideoEncoder;
mainWindow.drp_audioCodec.Text = presetQuery.AudioEncoder;
+ if (presetQuery.IpodAtom == true)
+ mainWindow.check_iPodAtom.CheckState = CheckState.Checked;
+ else
+ mainWindow.check_iPodAtom.CheckState = CheckState.Unchecked;
+
+ if (presetQuery.OptimizeMP4 == true)
+ mainWindow.check_optimiseMP4.CheckState = CheckState.Checked;
+ else
+ mainWindow.check_optimiseMP4.CheckState = CheckState.Unchecked;
+
#endregion
// Picture Settings Tab
@@ -254,15 +268,7 @@ namespace Handbrake.Functions else
mainWindow.check_largeFile.CheckState = CheckState.Unchecked;
- if (presetQuery.IpodAtom == true)
- mainWindow.check_iPodAtom.CheckState = CheckState.Checked;
- else
- mainWindow.check_iPodAtom.CheckState = CheckState.Unchecked;
-
- if (presetQuery.OptimizeMP4 == true)
- mainWindow.check_optimiseMP4.CheckState = CheckState.Checked;
- else
- mainWindow.check_optimiseMP4.CheckState = CheckState.Unchecked;
+
#endregion
|