From d401f5316678673087a8f444e014516f73ff2268 Mon Sep 17 00:00:00 2001 From: Jim-Bim Date: Sun, 5 Apr 2009 21:11:14 +0000 Subject: [PATCH] AckisRecipeList: - opening without hiding exclusions now correctly sets the exclusion count - alt-clicking a recipe now correctly updates the progress count --- ARLFrame.lua | 4 +++- AckisRecipeList.lua | 13 ++++++++----- 2 files changed, 11 insertions(+), 6 deletions(-) diff --git a/ARLFrame.lua b/ARLFrame.lua index 760cba6..c099d81 100644 --- a/ARLFrame.lua +++ b/ARLFrame.lua @@ -1290,7 +1290,9 @@ local function ReDisplay() sortedRecipeIndex = addon:SortMissingRecipes(recipeDB) if (not addon.db.profile.ignoreexclusionlist) then - addon:GetExclusions(recipeDB) + playerData.excluded_recipes_known, playerData.excluded_recipes_unknown = addon:GetExclusions(recipeDB,1) + else + playerData.excluded_recipes_known, playerData.excluded_recipes_unknown = addon:GetExclusions(recipeDB,0) end initDisplayStrings() diff --git a/AckisRecipeList.lua b/AckisRecipeList.lua index 9e26394..01f443d 100644 --- a/AckisRecipeList.lua +++ b/AckisRecipeList.lua @@ -1737,10 +1737,9 @@ do self:UpdateFilters(RecipeList, AllSpecialtiesTable, playerData) -- Mark excluded recipes if (not addon.db.profile.ignoreexclusionlist) then - playerData.excluded_recipes_known, playerData.excluded_recipes_unknown = self:GetExclusions(RecipeList) + playerData.excluded_recipes_known, playerData.excluded_recipes_unknown = self:GetExclusions(RecipeList,1) else - playerData.excluded_recipes_known = 0 - playerData.excluded_recipes_unknown = 0 + playerData.excluded_recipes_known, playerData.excluded_recipes_unknown = self:GetExclusions(RecipeList,0) end end @@ -1928,7 +1927,7 @@ end -- Input: Recipe Database -- Output: None, Recipe Database is passed as a reference -function addon:GetExclusions(RecipeDB) +function addon:GetExclusions(RecipeDB, Ignored) local exclusionlist = addon.db.profile.exclusionlist local countknown = 0 @@ -1940,7 +1939,11 @@ function addon:GetExclusions(RecipeDB) -- check if the entry exists in RecipeDB first if (RecipeDB[i]) then - RecipeDB[i]["Display"] = false + if (Ignored == 1) then + + RecipeDB[i]["Display"] = false + + end if (RecipeDB[i]["Known"] == false) then -- 1.7.9.5