From f7678134a8c8ac71ee3cde0804887e5af7bed8db Mon Sep 17 00:00:00 2001 From: ackis Date: Tue, 11 Aug 2009 19:16:12 +0000 Subject: [PATCH] Move the tooltip hide code in the miner from at the end of the function where it'll never be called to just before we actually return the values. --- ARLDatamine.lua | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/ARLDatamine.lua b/ARLDatamine.lua index 7392539..73f00cd 100644 --- a/ARLDatamine.lua +++ b/ARLDatamine.lua @@ -1180,6 +1180,8 @@ function addon:TooltipScanRecipe(spellid,is_vendor,is_largescan) -- Add the flag scan to the table if it's not nil local results = self:PrintScanResults() + ARLDatamineTT:Hide() + if (results) then tinsert(t,results) if (is_largescan) then @@ -1190,6 +1192,9 @@ function addon:TooltipScanRecipe(spellid,is_vendor,is_largescan) else return nil end + + else + ARLDatamineTT:Hide() end -- Lets hide this output for runeforging. @@ -1199,7 +1204,7 @@ function addon:TooltipScanRecipe(spellid,is_vendor,is_largescan) else self:Print("Spell ID does not exist in the database.") end - ARLDatamineTT:Hide() + end ------------------------------------------------------------------------------- -- 1.7.9.5