From c578ca20bc39571615ccc2574acecf2ab45a6cfd Mon Sep 17 00:00:00 2001 From: John Pasula Date: Tue, 25 Jan 2011 11:26:26 -0700 Subject: [PATCH] Some debug code to help with the issue that have mats is constantly being checked. --- core.lua | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/core.lua b/core.lua index dd3a566..563d278 100644 --- a/core.lua +++ b/core.lua @@ -1650,18 +1650,19 @@ do -- MrTrader saved the state for us else if not Skillet and have_materials then + self:Print("Have mats") TradeSkillFrame.filterTbl.hasMaterials = false TradeSkillOnlyShowMakeable(false) - TradeSkillUpdateFilterBar() end if not Skillet and have_skillup then + self:Print("Have skill") TradeSkillFrame.filterTbl.hasSkillUp = false TradeSkillOnlyShowSkillUps(false) - TradeSkillUpdateFilterBar() end UIDropDownMenu_Initialize(TradeSkillFilterDropDown, TradeSkillInvSlotDropDown_Initialize) UIDropDownMenu_SetSelectedID(TradeSkillFilterDropDown, 1) SetTradeSkillInvSlotFilter(0, 1, 1) + TradeSkillUpdateFilterBar() TradeSkillFrame_Update() -- Expand all headers so we can see all the recipes there are @@ -1728,12 +1729,11 @@ do -- Restore the state of the "Have Materials" checkbox. TradeSkillFrame.filterTbl.hasMaterials = have_materials TradeSkillOnlyShowMakeable(have_materials) - TradeSkillUpdateFilterBar() -- Restore the state of "Have Skillup" checkbox. TradeSkillFrame.filterTbl.hasSkillUp = have_skillup TradeSkillOnlyShowSkillUps(have_skillup) - TradeSkillUpdateFilterBar() + TradeSkillUpdateFilterBar() TradeSkillFrame_Update() ]]-- end -- 1.7.9.5