From 5ae0131499aef42d3cad831c7f7fc4534878cbf8 Mon Sep 17 00:00:00 2001 From: John Pasula Date: Tue, 25 Jan 2011 08:48:22 -0700 Subject: [PATCH] Deal with the skill up filter in addition to having materials filter. --- core.lua | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/core.lua b/core.lua index ade9075..27cd3ce 100644 --- a/core.lua +++ b/core.lua @@ -1623,6 +1623,7 @@ do -- Save the state of the "Have Materials" checkbox. local have_materials = TradeSkillFrame.filterTbl.hasMaterials + local have_skillip = TradeSkillFrame.filterTbl.hasSkillUp if MRTAPI and MRTAPI:PushFilterSelection() then -- MrTrader saved the state for us @@ -1631,6 +1632,10 @@ do TradeSkillFrame.filterTbl.hasMaterials = false TradeSkillOnlyShowMakeable(false) end + if not Skillet and have_materials then + TradeSkillFrame.filterTbl.hasSkillUp = false + TradeSkillOnlyShowSkillUps(false) + end UIDropDownMenu_Initialize(TradeSkillFilterDropDown, TradeSkillInvSlotDropDown_Initialize) UIDropDownMenu_SetSelectedID(TradeSkillFilterDropDown, 1) SetTradeSkillInvSlotFilter(0, 1, 1) @@ -1687,7 +1692,9 @@ do end -- Restore the state of the "Have Materials" checkbox. TradeSkillFrame.filterTbl.hasMaterials = have_materials + TradeSkillFrame.filterTbl.hasSkillUp = have_skillip TradeSkillOnlyShowMakeable(have_materials) + TradeSkillOnlyShowSkillUps(have_skillip) end Player.prev_count = Player.foundRecipes Player.foundRecipes = recipes_found -- 1.7.9.5