small tweak to button code
This commit is contained in:
+4
-6
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user