Skip to content

Commit

Permalink
fix #267
Browse files Browse the repository at this point in the history
  • Loading branch information
Tuller committed Jul 4, 2018
1 parent 2d2ff9a commit 9270a1a
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions Dominos/core/bindingsController.lua
Original file line number Diff line number Diff line change
Expand Up @@ -184,6 +184,7 @@ function BindingsController:RegisterEvents()
self:RegisterEvent('UPDATE_BINDINGS')
self:RegisterEvent('PLAYER_LOGIN')
self:RegisterEvent('CVAR_UPDATE')
self:RegisterEvent("ACTIONBAR_UPDATE_STATE")
end

function BindingsController:OnEvent(event, ...)
Expand Down Expand Up @@ -212,6 +213,14 @@ function BindingsController:CVAR_UPDATE(event, variableName)
end
end

function BindingsController:ACTIONBAR_UPDATE_STATE()
for button in pairs(self.surrogates) do
if not button:GetChecked() then
button:SetButtonState('NORMAL')
end
end
end

function BindingsController:Register(button, createSurrogate)
if self.frames[button] then
return
Expand Down

0 comments on commit 9270a1a

Please sign in to comment.