widget: use empty string instead of nil when no widget is wanted

This commit is contained in:
Vincent Bernat 2012-07-07 10:21:40 +02:00
parent 5a4473d370
commit 76e330d981

View file

@ -112,11 +112,11 @@ for s = 1, screen.count() do
-- Add widgets to the wibox -- Add widgets to the wibox
local onfirst = function(what) local onfirst = function(what)
if s == 1 then return what end if s == 1 then return what end
return nil return ""
end end
local onsecond = function(what) local onsecond = function(what)
if s == 2 or screen.count() == 1 then return what end if s == 2 or screen.count() == 1 then return what end
return nil return ""
end end
wibox[s].widgets = { wibox[s].widgets = {