Quantcast

Reverted the status bar back to its previous behavior - list results are now shown at the end.

James D. Callahan III [03-29-10 - 04:27]
Reverted the status bar back to its previous behavior - list results are now shown at the end.
Filename
Frame.lua
diff --git a/Frame.lua b/Frame.lua
index d434a79..ab89142 100644
--- a/Frame.lua
+++ b/Frame.lua
@@ -2871,16 +2871,18 @@ do

 			local profile = addon.db.profile
 			local max_value = profile.includefiltered and Player.recipes_total or Player.recipes_total_filtered
+			local cur_value = Player.recipes_known
 			local progress_bar = MainPanel.progress_bar

 			if not profile.includeexcluded and not profile.ignoreexclusionlist then
 				max_value = max_value - Player.excluded_recipes_known
 			end
 			progress_bar:SetMinMaxValues(0, max_value)
-			progress_bar:SetValue(recipe_count)
+			progress_bar:SetValue(cur_value)

 			if (floor(recipe_count / max_value * 100) < 101) and recipe_count >= 0 and max_value >= 0 then
-				progress_bar.text:SetFormattedText("%d / %d - %1.2f%%", recipe_count, max_value, recipe_count / max_value * 100)
+				local results = string.format(SINGLE_PAGE_RESULTS_TEMPLATE, recipe_count)
+				progress_bar.text:SetFormattedText("%d / %d - %1.2f%% - (%s)", cur_value, max_value, recipe_count / max_value * 100, results)
 			else
 				progress_bar.text:SetFormattedText("0 / 0 - %s", L["NOT_YET_SCANNED"])
 			end