From 85046f1d45dc382bc5a0f9b61e6a4f03b0d4e6dc Mon Sep 17 00:00:00 2001 From: John Pasula Date: Thu, 27 Jan 2011 19:19:41 -0700 Subject: [PATCH] When displaying the progress bar, we should never show less than the total known recipes. Easier to give example. Total recipes: 10. Known = 3, unknown = 7. Say we filter out recipes so that 1 known is filtered and 3 unknown get filtered, it would previously say we know 2 out of 6. Now it will say we know 3 out of 7. --- Interface/List.lua | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Interface/List.lua b/Interface/List.lua index 09f0b4e..b90e4f7 100644 --- a/Interface/List.lua +++ b/Interface/List.lua @@ -810,8 +810,10 @@ function private.InitializeListFrame() -- Update the progress bar display. ------------------------------------------------------------------------------- local profile = addon.db.profile - local max_value = profile.includefiltered and Player.recipes_total or Player.recipes_total_filtered - local cur_value = profile.includefiltered and Player.recipes_known or Player.recipes_known_filtered + local max_value = profile.includefiltered and Player.recipes_total or (Player.recipes_total_filtered + (Player.recipes_known - Player.recipes_known_filtered)) + --local cur_value = profile.includefiltered and Player.recipes_known or Player.recipes_known_filtered + -- Current value will always be what we know regardless of filters. + local cur_value = Player.recipes_known if not profile.includeexcluded and not profile.ignoreexclusionlist then max_value = max_value - Player.excluded_recipes_known -- 1.7.9.5