From dc3106ef699314227e7c6cad6e6998f24387dabe Mon Sep 17 00:00:00 2001 From: Jim-Bim Date: Sun, 7 Dec 2008 19:28:21 +0000 Subject: [PATCH] AckisRecipeList: - disable expand button for empty recipe list --- ARLFrame.lua | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/ARLFrame.lua b/ARLFrame.lua index cc86a25..80eb2fb 100644 --- a/ARLFrame.lua +++ b/ARLFrame.lua @@ -919,6 +919,10 @@ local function RecipeList_Update() if (entries > 0) then + -- enable expand button + ARL_ExpandButton:SetNormalFontObject("GameFontNormalSmall") + ARL_ExpandButton:Enable() + -- now fill in our buttons local listOffset = FauxScrollFrame_GetOffset(ARL_RecipeScrollFrame) local buttonIndex = 1 @@ -975,6 +979,9 @@ local function RecipeList_Update() -- Entries are 0 here, so we have 0 to display else + -- disable expand button, it's useless here and would spam the same error again + ARL_ExpandButton:SetNormalFontObject("GameFontDisableSmall") + ARL_ExpandButton:Disable() -- If the recipe total is at 0, it means we have not scanned the profession yet if (playerData.recipes_total == 0) then -- 1.7.9.5