Quantcast

AckisRecipeList:

Jim-Bim [11-06-08 - 21:34]
AckisRecipeList:
- properly reset expand all button with clear search
- only enable apply button after changing filters
Filename
ARLFrame.lua
diff --git a/ARLFrame.lua b/ARLFrame.lua
index 68056b4..d4cb37d 100644
--- a/ARLFrame.lua
+++ b/ARLFrame.lua
@@ -702,6 +702,9 @@ function addon.filterSwitch(val)

 	addon.resetTitle()

+	-- Make sure our apply button gets enabled
+	ARL_ApplyButton:Enable()
+
 end

 -- Description:
@@ -1853,6 +1856,9 @@ function RecipeList_Update()

 	end

+	-- Make sure our apply button gets disabled
+	ARL_ApplyButton:Disable()
+
 end

 -- Description:
@@ -3202,6 +3208,11 @@ function addon:CreateFrame(

 					addon:ResetSearch(recipeDB)
 					ARL_SearchText:SetText(L["SEARCH_BOX_DESC"])
+
+					-- Make sure our expand all button is set to expandall
+					ARL_ExpandButton:SetText(L["EXPANDALL"])
+					addon:TooltipDisplay(ARL_ExpandButton, L["EXPANDALL_DESC"])
+
 					initDisplayStrings()
 					RecipeList_Update()