summaryrefslogtreecommitdiffstats
path: root/win/C#/frmQueue.cs
diff options
context:
space:
mode:
authorsr55 <[email protected]>2008-08-24 17:57:54 +0000
committersr55 <[email protected]>2008-08-24 17:57:54 +0000
commit163bce7432c717a0d102568a0d582375f507e3f7 (patch)
treea62dc6dbd0d64b31a79e2630db4133b37885d668 /win/C#/frmQueue.cs
parentb4553cd70fde71ac12974aa83dec4508f8f690ab (diff)
WinGui:
- Adds checkbox to enable decomb. - Program Options updated with an option to customize decomb values. - Queue Recovery feature. If you close the GUI without letting a queue complete, the user will be prompted if they'd like to recover the queue on next launch. - Small bugfix with the queue HandBrakeCLI monitor thread not stopping when the GUI is closed. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@1653 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'win/C#/frmQueue.cs')
-rw-r--r--win/C#/frmQueue.cs17
1 files changed, 7 insertions, 10 deletions
diff --git a/win/C#/frmQueue.cs b/win/C#/frmQueue.cs
index d239203a5..e331b70f6 100644
--- a/win/C#/frmQueue.cs
+++ b/win/C#/frmQueue.cs
@@ -97,7 +97,6 @@ namespace Handbrake
{
if (queue.count() != 0)
{
- lbl_status.Visible = false;
btn_encode.Enabled = false;
}
cancel = false;
@@ -111,9 +110,9 @@ namespace Handbrake
btn_stop.Visible = true;
progressBar.Value = 0;
lbl_progressValue.Text = "0 %";
- progressBar.Step = 100 / queue.count();
- progressBar.Update();
+ progressBar.Step = 100 / queue.count();
Thread theQ = new Thread(startProc);
+ theQ.IsBackground = true;
theQ.Start();
}
}
@@ -178,18 +177,14 @@ namespace Handbrake
if (cancel == true)
{
- lbl_status.Visible = true;
- lbl_status.Text = "Encode Queue Cancelled!";
+ lbl_progressValue.Text = "Encode Queue Cancelled!";
}
else
{
- lbl_status.Visible = true;
- lbl_status.Text = "Encode Queue Completed!";
+ lbl_progressValue.Text = "Encode Queue Completed!";
}
- lbl_progressValue.Text = "0 %";
progressBar.Value = 0;
- progressBar.Update();
lbl_source.Text = "-";
lbl_dest.Text = "-";
@@ -228,7 +223,6 @@ namespace Handbrake
progressBar.PerformStep();
lbl_progressValue.Text = string.Format("{0} %", progressBar.Value);
- progressBar.Update();
}
catch (Exception exc)
{
@@ -285,6 +279,7 @@ namespace Handbrake
if (list_queue.SelectedIndices.Count != 0)
{
queue.moveUp(list_queue.SelectedIndices[0]);
+ queue.write2disk(); // Update the queue recovery file
redrawQueue();
}
}
@@ -295,6 +290,7 @@ namespace Handbrake
if (list_queue.SelectedIndices.Count != 0)
{
queue.moveDown(list_queue.SelectedIndices[0]);
+ queue.write2disk(); // Update the queue recovery file
redrawQueue();
}
}
@@ -305,6 +301,7 @@ namespace Handbrake
if (list_queue.SelectedIndices.Count != 0)
{
queue.remove(list_queue.SelectedIndices[0]);
+ queue.write2disk(); // Update the queue recovery file
redrawQueue();
}
}