oh shuut here we go again
This commit is contained in:
parent
2023255062
commit
b9e9d87d6a
|
@ -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…
Reference in New Issue