From eff6cf4d09dca5243a25e842e6d62a0e1d8a8dde Mon Sep 17 00:00:00 2001 From: "James D. Callahan III" Date: Wed, 23 Jun 2010 11:47:34 -0400 Subject: [PATCH] Save the state of the "Have Materials" checkbox in the default TradeSkill UI before scanning, then restore it when done. --- ARL.lua | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/ARL.lua b/ARL.lua index ff1df05..9bd866a 100644 --- a/ARL.lua +++ b/ARL.lua @@ -1822,6 +1822,9 @@ do ------------------------------------------------------------------------------- twipe(header_list) + -- Save the state of the "Have Materials" checkbox. + local have_materials = TradeSkillFrameAvailableFilterCheckButton:GetChecked() + if MRTUIUtils_PushFilterSelection then MRTUIUtils_PushFilterSelection() else @@ -1890,6 +1893,9 @@ do CollapseTradeSkillSubClass(i) end end + -- Restore the state of the "Have Materials" checkbox. + TradeSkillFrameAvailableFilterCheckButton:SetChecked(have_materials) + TradeSkillOnlyShowMakeable(have_materials) end Player.prev_count = Player.foundRecipes Player.foundRecipes = recipes_found -- 1.7.9.5