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

Commit 74ee4cb

Browse files
authored
Merge pull request #419 from Ketrel/uihidechange
Added a minor change to allow bindings to work with the UI hidden
2 parents 894571b + e1c0090 commit 74ee4cb

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
@@ -192,8 +192,10 @@ function ACTIONBUTTON:SetType()
192192
end
193193
]])
194194

195+
self:SetFrameRef("uiparent",UIParent)
195196
self:WrapScript(self, "OnHide", [[
196-
if not self:GetParent():GetAttribute("concealed") then
197+
UIParent = self:GetFrameRef("uiparent")
198+
if (not self:GetParent():GetAttribute("concealed")) and (not UIParent:IsShown() == false) then
197199
for key in gmatch(self:GetAttribute("hotkeys"), "[^:]+") do
198200
self:ClearBinding(key)
199201
end
@@ -867,4 +869,4 @@ function ACTIONBUTTON:UpdateMacroCastTargets(global_update)
867869
button:SetType()
868870
end
869871
end
870-
end
872+
end

0 commit comments

Comments
 (0)