Skip to content

Commit

Permalink
core: Expose header visibility (#329)
Browse files Browse the repository at this point in the history
  • Loading branch information
p3lim committed Jan 29, 2017
1 parent b894e1c commit 5666085
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions ouf.lua
Expand Up @@ -532,9 +532,11 @@ do
local type, list = string.split(' ', visibility, 2)
if(list and type == 'custom') then
RegisterAttributeDriver(header, 'state-visibility', list)
header.visibility = list
else
local condition = getCondition(string.split(',', visibility))
RegisterAttributeDriver(header, 'state-visibility', condition)
header.visibility = condition
end
end

Expand Down

0 comments on commit 5666085

Please sign in to comment.