summaryrefslogtreecommitdiffstats
path: root/win/C#/frmQueue.cs
diff options
context:
space:
mode:
authorsr55 <[email protected]>2007-07-15 22:19:17 +0000
committersr55 <[email protected]>2007-07-15 22:19:17 +0000
commit815d3aa0089b5f7967c3a0524cdc56b30a997b4c (patch)
tree7284ef5e012c863417d7018435f0478f9c532adc /win/C#/frmQueue.cs
parent29036b449c87ca64e425e405fe81c450a65a081e (diff)
WinGui:
- Fixed Queue not encoding the full list - Fixed Subtitle dropdown not having a "None" Option - Fixed Audio dropdown not having an "Automatic" option - Fixed Destination browse not showing files - Added Alert when queue has finished. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@693 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'win/C#/frmQueue.cs')
-rw-r--r--win/C#/frmQueue.cs13
1 files changed, 9 insertions, 4 deletions
diff --git a/win/C#/frmQueue.cs b/win/C#/frmQueue.cs
index 67251ccfd..09b3f19c8 100644
--- a/win/C#/frmQueue.cs
+++ b/win/C#/frmQueue.cs
@@ -73,10 +73,10 @@ namespace Handbrake
private void startProc(object state)
{
- // Reminder: There is still a bug here where the loop suddenly halts for no good reson. UpdateUIelements runs, then the loop finishes several items early.
- for (int i = 0; i < list_queue.Items.Count; i++)
+ int initialListCount = list_queue.Items.Count;
+ for (int i = 0; i < initialListCount; i++)
{
- string query = list_queue.Items[0] as string;
+ string query = list_queue.Items[0].ToString();
Process hbProc = new Process();
hbProc.StartInfo.FileName = "hbcli.exe";
hbProc.StartInfo.Arguments = query;
@@ -110,7 +110,7 @@ namespace Handbrake
hbProc.WaitForExit();
hbProc.Close();
hbProc.Dispose();
-
+
updateUIElements();
}
@@ -127,6 +127,11 @@ namespace Handbrake
progressBar.PerformStep();
lbl_progressValue.Text = string.Format("{0} %", progressBar.Value);
progressBar.Update();
+
+ if (progressBar.Value == 100)
+ {
+ MessageBox.Show("Encode Queue Completed!", "Alert", MessageBoxButtons.OK, MessageBoxIcon.Asterisk);
+ }
}
}
} \ No newline at end of file