Skip to content

Commit

Permalink
Adding Pass Count back onto the status bar.
Browse files Browse the repository at this point in the history
  • Loading branch information
sr55 committed Oct 10, 2015
1 parent 74614fe commit bfaf362
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 6 deletions.
4 changes: 2 additions & 2 deletions win/CS/HandBrakeWPF/Properties/Resources.Designer.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions win/CS/HandBrakeWPF/Properties/Resources.resx
Original file line number Diff line number Diff line change
Expand Up @@ -358,7 +358,7 @@ In order to use the QuickSync encoder, you must:
<value>There are jobs on the queue with the same destination path. Please choose a different path for this job.</value>
</data>
<data name="Main_JobsPending_addon" xml:space="preserve">
<value> Pending Jobs {5}</value>
<value> Pending Jobs {6}</value>
</data>
<data name="Main_NewDefaultPreset" xml:space="preserve">
<value>New Default Preset Set: {0}</value>
Expand Down Expand Up @@ -551,7 +551,7 @@ The Activity log may have further information.</value>
<value>Are you sure you want to delete the preset: </value>
</data>
<data name="MainViewModel_EncodeStatusChanged_StatusLabel" xml:space="preserve">
<value>{0:00.00}% FPS: {1:000.0} Avg FPS: {2:000.0} Time Remaining: {3} Elapsed: {4:hh\:mm\:ss}</value>
<value>{0:00.00}% {1}FPS: {2:000.0} Avg FPS: {3:000.0} Time Remaining: {4} Elapsed: {5:hh\:mm\:ss}</value>
</data>
<data name="AddPresetViewModel_PresetMustProvideName" xml:space="preserve">
<value>A Preset must have a Name. Please fill out the Preset Name field.</value>
Expand Down
11 changes: 9 additions & 2 deletions win/CS/HandBrakeWPF/ViewModels/MainViewModel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2230,13 +2230,20 @@ private void EncodeStatusChanged(object sender, EncodeProgressEventArgs e)
{
if (this.queueProcessor.EncodeService.IsEncoding)
{
string pass = string.Empty;
if (e.TaskCount > 1)
{
pass = $"for pass {e.Task} of {e.TaskCount} ";
}

this.ProgramStatusLabel =
string.Format(Resources.MainViewModel_EncodeStatusChanged_StatusLabel + Resources.Main_JobsPending_addon,
e.PercentComplete,
e.PercentComplete,
pass,
e.CurrentFrameRate,
e.AverageFrameRate,
e.EstimatedTimeLeft,
e.ElapsedTime,
e.ElapsedTime,
this.queueProcessor.Count);

if (lastEncodePercentage != percent && this.windowsSeven.IsWindowsSeven)
Expand Down

0 comments on commit bfaf362

Please sign in to comment.