oh shuut here we go again

This commit is contained in:
Yessiest 2022-08-31 16:59:57 +04:00
parent 2023255062
commit b9e9d87d6a
1 changed files with 8 additions and 1 deletions

View File

@ -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