Browse Source

oh shuut here we go again

master
Yessiest 2 years ago
parent
commit
b9e9d87d6a
  1. 9
      widgets/battery.lua

9
widgets/battery.lua

@ -223,7 +223,14 @@ return function(args)
})
-- }}}
-- We don't need this widget if we don't have anything to show
if #widget_map == 0 then
local function count(t)
local count = 0
for k,v in pairs(t) do
count = count + 1
end
return count
end
if count(widget_map) == 0 then
backlight_update:stop()
power_update:stop()
return

Loading…
Cancel
Save