diff options
author | sr55 <[email protected]> | 2007-12-21 15:21:12 +0000 |
---|---|---|
committer | sr55 <[email protected]> | 2007-12-21 15:21:12 +0000 |
commit | 8ee09a3eac69c06cfd9b04c369c0ada1915c7fce (patch) | |
tree | 2f5216ed252af48d405e3cb4134996368d8ac648 /win/C#/frmQueue.cs | |
parent | c9457fe2227ed8693e8b42044ddd4a4d5518ada6 (diff) |
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
Diffstat (limited to 'win/C#/frmQueue.cs')
-rw-r--r-- | win/C#/frmQueue.cs | 16 |
1 files changed, 11 insertions, 5 deletions
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();
|