Quantcast

In MainPanel.progress_bar:Update(): Set pbCur regardless of filter status - the same value is used in both cases.

James D. Callahan III [03-22-10 - 22:08]
In MainPanel.progress_bar:Update(): Set pbCur regardless of filter status - the same value is used in both cases.
Filename
Frame.lua
diff --git a/Frame.lua b/Frame.lua
index c6a160e..3244f54 100644
--- a/Frame.lua
+++ b/Frame.lua
@@ -2848,12 +2848,11 @@ function MainPanel.progress_bar:Update()
 	local pbCur, pbMax
 	local settings = addon.db.profile

+	pbCur = MainPanel.scroll_frame.recipes_displayed
+
 	if settings.includefiltered then
-		pbCur = MainPanel.scroll_frame.recipes_displayed
 		pbMax = Player.recipes_total
 	else
-		-- We're removing filtered recipes from the final count
-		pbCur = MainPanel.scroll_frame.recipes_displayed
 		pbMax = Player.recipes_total_filtered
 	end