From 4431a2f8ed9bd80d754eae25a7cd1d484de301cf Mon Sep 17 00:00:00 2001 From: Hendrik Leppkes Date: Fri, 11 Jan 2008 15:28:09 +0000 Subject: [PATCH] small tweak to button code --- Button.lua | 10 ++++------ Options.lua | 1 - 2 files changed, 4 insertions(+), 7 deletions(-) diff --git a/Button.lua b/Button.lua index 006f971..8e170e8 100644 --- a/Button.lua +++ b/Button.lua @@ -188,16 +188,14 @@ function Button:Update() self.border:Hide() end - if ( GameTooltip:IsOwned(self) ) then + if ( GameTooltip:GetOwner() == self) then self:SetTooltip() - else - self.UpdateTooltip = nil end - if self.parent.config.hidemacrotext then - self.macroName:SetText("") - else + if not IsConsumableAction(action) and not IsStackableAction(action) and not self.parent.config.hidemacrotext then self.macroName:SetText(GetActionText(action)) + else + self.macroName:SetText("") end end diff --git a/Options.lua b/Options.lua index 37c8525..04a0e74 100644 --- a/Options.lua +++ b/Options.lua @@ -112,7 +112,6 @@ do }, }, } - return tbl end end