Hide MacroText works again
This commit is contained in:
@@ -118,6 +118,7 @@ function Bartender4.Button:Create(id, parent)
|
||||
--self:UpdateAction(true)
|
||||
button:UpdateHotkeys()
|
||||
button:UpdateUsable()
|
||||
button:ToggleButtonElements()
|
||||
|
||||
return button
|
||||
end
|
||||
@@ -254,6 +255,11 @@ function Button:GetActionID()
|
||||
return self.action
|
||||
end
|
||||
|
||||
function Button:Update()
|
||||
self:UpdateAction(true)
|
||||
self:ToggleButtonElements()
|
||||
end
|
||||
|
||||
function Button:UpdateAction(force)
|
||||
if force then
|
||||
self.action = 0
|
||||
@@ -261,6 +267,14 @@ function Button:UpdateAction(force)
|
||||
ActionButton_UpdateAction(self)
|
||||
end
|
||||
|
||||
function Button:ToggleButtonElements()
|
||||
if self.parent.config.hidemacrotext then
|
||||
self.macroName:Hide()
|
||||
else
|
||||
self.macroName:Show()
|
||||
end
|
||||
end
|
||||
|
||||
local orig_ActionButton_UpdateHotkeys = ActionButton_UpdateHotkeys
|
||||
ActionButton_UpdateHotkeys = function(self, ...)
|
||||
local name = self:GetName()
|
||||
|
||||
Reference in New Issue
Block a user