Skip to content

Commit

Permalink
I knew i wrote that bit of code for a reason...
Browse files Browse the repository at this point in the history
  • Loading branch information
Tuller committed Dec 8, 2012
1 parent ff4ef38 commit 555501e
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion actionBar.lua
Expand Up @@ -226,6 +226,10 @@ function ActionBar:UpdateActions()
end end
function ActionBar:LoadStateController() function ActionBar:LoadStateController()
self.header:SetAttribute('_onstate-overridebar', [[
self:RunAttribute('updateState')
]])

self.header:SetAttribute('_onstate-overridepage', [[ self.header:SetAttribute('_onstate-overridepage', [[
self:RunAttribute('updateState') self:RunAttribute('updateState')
]]) ]])
Expand All @@ -236,7 +240,7 @@ function ActionBar:LoadStateController()


self.header:SetAttribute('updateState', [[ self.header:SetAttribute('updateState', [[
local state local state
if self:GetAttribute('state-overridepage') > 0 then if self:GetAttribute('state-overridepage') > 0 and self:GetAttribute('state-overridebar') then
state = 'override' state = 'override'
else else
state = self:GetAttribute('state-page') state = self:GetAttribute('state-page')
Expand Down

0 comments on commit 555501e

Please sign in to comment.