Quantcast

In ListFrame:Initialize(): If profile.includefiltered is false, use Player.recipes_known_filtered instead of Player.recipes_known.

James D. Callahan III [03-30-10 - 19:47]
In ListFrame:Initialize(): If profile.includefiltered is false, use Player.recipes_known_filtered instead of Player.recipes_known.
Filename
Frame.lua
diff --git a/Frame.lua b/Frame.lua
index 225c69e..d8df42f 100644
--- a/Frame.lua
+++ b/Frame.lua
@@ -2867,7 +2867,7 @@ 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 cur_value = profile.includefiltered and Player.recipes_known or Player.recipes_known_filtered
 		local progress_bar = MainPanel.progress_bar

 		if not profile.includeexcluded and not profile.ignoreexclusionlist then