Quantcast

AckisRecipeList:

Jim-Bim [04-05-09 - 21:11]
AckisRecipeList:
- opening without hiding exclusions now correctly sets the exclusion count
- alt-clicking a recipe now correctly updates the progress count
Filename
ARLFrame.lua
AckisRecipeList.lua
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