From af7f610be7b86300879f9dfa71da467e221365a4 Mon Sep 17 00:00:00 2001 From: "James D. Callahan III" Date: Thu, 1 Apr 2010 23:43:06 -0400 Subject: [PATCH] When the editbox's text has been re-set to defaults, remove the RELEVANT flag from all recipes instead of setting it. --- Frame.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Frame.lua b/Frame.lua index 78f35a7..e21100a 100644 --- a/Frame.lua +++ b/Frame.lua @@ -1414,7 +1414,7 @@ ARL_ClearButton:SetScript("OnClick", -- Reset the search flags for index in pairs(recipe_list) do - recipe_list[index]:AddState("RELEVANT") + recipe_list[index]:RemoveState("RELEVANT") end MainPanel.search_editbox:SetText(_G.SEARCH) @@ -1491,7 +1491,7 @@ MainPanel.search_editbox:SetScript("OnTextSet", local recipe_list = private.recipe_list for spell_id in pairs(recipe_list) do - recipe_list[spell_id]:AddState("RELEVANT") + recipe_list[spell_id]:RemoveState("RELEVANT") end ARL_SearchButton:SetNormalFontObject("GameFontDisableSmall") ARL_SearchButton:Disable() -- 1.7.9.5