From 8ee09a3eac69c06cfd9b04c369c0ada1915c7fce Mon Sep 17 00:00:00 2001 From: sr55 Date: Fri, 21 Dec 2007 15:21:12 +0000 Subject: WinGui: - Updated build number to match SVN. - Fixed an issue where Encode & Pause buttons didn't enable / disable correctly on the queue. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@1144 b64f7644-9d1e-0410-96f1-a4d463321fa5 --- win/C#/Properties/Settings.Designer.cs | 2 +- win/C#/Properties/Settings.settings | 2 +- win/C#/app.config | 2 +- win/C#/frmQueue.cs | 16 +++++++++++----- 4 files changed, 14 insertions(+), 8 deletions(-) diff --git a/win/C#/Properties/Settings.Designer.cs b/win/C#/Properties/Settings.Designer.cs index 8eb65e28c..e2043b31f 100644 --- a/win/C#/Properties/Settings.Designer.cs +++ b/win/C#/Properties/Settings.Designer.cs @@ -133,7 +133,7 @@ namespace Handbrake.Properties { [global::System.Configuration.UserScopedSettingAttribute()] [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.Configuration.DefaultSettingValueAttribute("1000")] + [global::System.Configuration.DefaultSettingValueAttribute("1144")] public int hb_build { get { return ((int)(this["hb_build"])); diff --git a/win/C#/Properties/Settings.settings b/win/C#/Properties/Settings.settings index 9b60aea65..23fa200e7 100644 --- a/win/C#/Properties/Settings.settings +++ b/win/C#/Properties/Settings.settings @@ -30,7 +30,7 @@ Checked - 1000 + 1144 0 diff --git a/win/C#/app.config b/win/C#/app.config index a35ba754c..d33008bfd 100644 --- a/win/C#/app.config +++ b/win/C#/app.config @@ -35,7 +35,7 @@ Checked - 1000 + 1144 0 diff --git a/win/C#/frmQueue.cs b/win/C#/frmQueue.cs index 4faff3936..deb097227 100644 --- a/win/C#/frmQueue.cs +++ b/win/C#/frmQueue.cs @@ -29,7 +29,11 @@ namespace Handbrake { // Reset some values - lbl_status.Visible = false; + if (list_queue.Items.Count != 0) + { + lbl_status.Visible = false; + btn_encode.Enabled = false; + } cancel = false; // Start the encode @@ -59,6 +63,7 @@ namespace Handbrake { cancel = true; btn_stop.Visible = false; + btn_encode.Enabled = true; MessageBox.Show("No further items on the queue will start. The current encode process will continue until it is finished. \nClick 'Encode Video' when you wish to continue encoding the queue.", "Warning", MessageBoxButtons.OK, MessageBoxIcon.Warning); } @@ -89,8 +94,7 @@ namespace Handbrake if (cancel == true) { break; - } - + } } resetQueue(); @@ -155,7 +159,10 @@ namespace Handbrake { this.BeginInvoke(new ProgressUpdateHandler(resetQueue)); return; + } + btn_stop.Visible = false; + btn_encode.Enabled = true; if (cancel == true) { @@ -169,8 +176,7 @@ namespace Handbrake lbl_status.Text = "Encode Queue Completed!"; text_edit.Text = ""; } - btn_stop.Visible = false; - + lbl_progressValue.Text = "0 %"; progressBar.Value = 0; progressBar.Update(); -- cgit v1.2.3