Quantcast

I think I fixed the bug where you get the omg why aren't there recipes to display message?!?!

ackis [02-13-09 - 23:27]
I think I fixed the bug where you get the omg why aren't there recipes to display message?!?!
Filename
ARLFrame.lua
diff --git a/ARLFrame.lua b/ARLFrame.lua
index 3ab5b7f..6d091b3 100644
--- a/ARLFrame.lua
+++ b/ARLFrame.lua
@@ -972,20 +972,18 @@ local function RecipeList_Update()
 		elseif (playerData.recipes_known == playerData.recipes_total) then
 			StaticPopup_Show("ARL_ALLKNOWN")
 		-- Our filters are actually filtering something
-		elseif ((playerData.recipes_total_filtered - playerData.recipes_known_filtered) ~= 0) then
+		elseif ((playerData.recipes_total_filtered - playerData.recipes_known_filtered) == 0) then
 			StaticPopup_Show("ARL_ALLFILTERED")
 		-- Our exclusion list is preventing something from being displayed
 		elseif (playerData.excluded_recipes_unknown ~= 0) then
 			StaticPopup_Show("ARL_ALLEXCLUDED")
 		else
-			--[===[@debug@
+			addon:Print(L["NO_DISPLAY"])
 			addon:Print("DEBUG: recipes_total: " .. playerData.recipes_total)
 			addon:Print("DEBUG: recipes_known: " .. playerData.recipes_known)
 			addon:Print("DEBUG: recipes_total_filtered: " .. playerData.recipes_total_filtered)
 			addon:Print("DEBUG: recipes_known_filtered: " .. playerData.recipes_known_filtered)
-			addon:Print("DEBUG: excluded_recipes_unknown: " .. playerData.excluded_recipes_unknown)
-			--@end-debug@]===]
-			addon:Print(L["NO_DISPLAY"])
+			addon:Print("DEBUG: excluded_recipes_unknown: " .. playerData.excluded_recipes_unknown)
 		end

 	end