From 5f1d29efe1d78d2019899619440250e5e760d614 Mon Sep 17 00:00:00 2001 From: sr55 Date: Mon, 22 Jun 2009 20:24:17 +0000 Subject: WinGui: - Stop using Strings for CheckBoxes in IF statements. They can return a boolean values. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@2599 b64f7644-9d1e-0410-96f1-a4d463321fa5 --- win/C#/EncodeQueue/Encode.cs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'win/C#/EncodeQueue') diff --git a/win/C#/EncodeQueue/Encode.cs b/win/C#/EncodeQueue/Encode.cs index 6eced17c7..29d8bf874 100644 --- a/win/C#/EncodeQueue/Encode.cs +++ b/win/C#/EncodeQueue/Encode.cs @@ -34,13 +34,13 @@ namespace Handbrake.EncodeQueue string strCmdLine = String.Format(@" CMD /c """"{0}"" {1} 2>""{2}"" """, handbrakeCLIPath, query, logPath); ProcessStartInfo cliStart = new ProcessStartInfo("CMD.exe", strCmdLine); - if (Properties.Settings.Default.enocdeStatusInGui == "Checked") + if (Properties.Settings.Default.enocdeStatusInGui) { cliStart.RedirectStandardOutput = true; cliStart.UseShellExecute = false; } - if (Properties.Settings.Default.cli_minimized == "Checked") + if (Properties.Settings.Default.cli_minimized) cliStart.WindowStyle = ProcessWindowStyle.Minimized; Process[] before = Process.GetProcesses(); // Get a list of running processes before starting. @@ -174,12 +174,12 @@ namespace Handbrake.EncodeQueue File.Copy(tempLogFile, Path.Combine(logDir, encodeLogFile)); // Save a copy of the log file in the same location as the enocde. - if (Properties.Settings.Default.saveLogWithVideo == "Checked") + if (Properties.Settings.Default.saveLogWithVideo) File.Copy(tempLogFile, Path.Combine(encodeDestinationPath, encodeLogFile)); // Save a copy of the log file to a user specified location if (Directory.Exists(Properties.Settings.Default.saveLogPath)) - if (Properties.Settings.Default.saveLogPath != String.Empty && Properties.Settings.Default.saveLogToSpecifiedPath == "Checked") + if (Properties.Settings.Default.saveLogPath != String.Empty && Properties.Settings.Default.saveLogToSpecifiedPath) File.Copy(tempLogFile, Path.Combine(Properties.Settings.Default.saveLogPath, encodeLogFile)); } catch (Exception exc) -- cgit v1.2.3