Skip to content
This repository was archived by the owner on Jan 21, 2024. It is now read-only.

Commit e1c0090

Browse files
KetrelKetrel
authored andcommitted
Added a minor change to allow bindings to work with the UI hidden
1 parent 4e24efe commit e1c0090

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

Objects/ACTIONBUTTON.lua

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -208,8 +208,10 @@ function ACTIONBUTTON:SetType()
208208
end
209209
]])
210210

211+
self:SetFrameRef("uiparent",UIParent)
211212
self:WrapScript(self, "OnHide", [[
212-
if not self:GetParent():GetAttribute("concealed") then
213+
UIParent = self:GetFrameRef("uiparent")
214+
if (not self:GetParent():GetAttribute("concealed")) and (not UIParent:IsShown() == false) then
213215
for key in gmatch(self:GetAttribute("hotkeys"), "[^:]+") do
214216
self:ClearBinding(key)
215217
end
@@ -883,4 +885,4 @@ function ACTIONBUTTON:UpdateMacroCastTargets(global_update)
883885
button:SetType()
884886
end
885887
end
886-
end
888+
end

0 commit comments

Comments
 (0)