From 5e400b7710cc6bb5a6b45f97cfe6d2737b0c33d5 Mon Sep 17 00:00:00 2001 From: sr55 Date: Mon, 18 Feb 2008 17:43:31 +0000 Subject: WinGui: - Fixed issue with iPod Atom displaying an error with the new presets when switching from a preset with ipod atom to one without. - Fixed the CLI preset grab during startup. This wasn't working. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@1288 b64f7644-9d1e-0410-96f1-a4d463321fa5 --- win/C#/Functions/Common.cs | 24 +++++++++++++++--------- 1 file changed, 15 insertions(+), 9 deletions(-) (limited to 'win/C#/Functions') 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 -- cgit v1.2.3