Permalink
Browse files

I knew i wrote that bit of code for a reason...

  • Loading branch information...
1 parent ff4ef38 commit 555501e3ddecabdb260a80eb4eabe6db0fd00451 @Tuller Tuller committed Dec 8, 2012
Showing with 5 additions and 1 deletion.
  1. +5 −1 actionBar.lua
View
@@ -226,6 +226,10 @@ function ActionBar:UpdateActions()
end
function ActionBar:LoadStateController()
+ self.header:SetAttribute('_onstate-overridebar', [[
+ self:RunAttribute('updateState')
+ ]])
+
self.header:SetAttribute('_onstate-overridepage', [[
self:RunAttribute('updateState')
]])
@@ -236,7 +240,7 @@ function ActionBar:LoadStateController()
self.header:SetAttribute('updateState', [[
local state
- if self:GetAttribute('state-overridepage') > 0 then
+ if self:GetAttribute('state-overridepage') > 0 and self:GetAttribute('state-overridebar') then
state = 'override'
else
state = self:GetAttribute('state-page')

0 comments on commit 555501e

Please sign in to comment.