Compare commits

..

No commits in common. "202325506284faecbf6a411b62a3267ec46305c3" and "3952a6d1352d8a301e7ac6931aa9a656ccbd3ac6" have entirely different histories.

1 changed files with 2 additions and 8 deletions

View File

@ -137,7 +137,7 @@ return function(args)
end end
update_virtual_battery() update_virtual_battery()
-- Update loop -- Update loop
local power_update = gears.timer({ gears.timer({
timeout = args.power_polling or 2, timeout = args.power_polling or 2,
autostart = true, autostart = true,
callback = function() callback = function()
@ -205,7 +205,7 @@ return function(args)
end end
end end
-- Update loop -- Update loop
local backlight_update = gears.timer({ gears.timer({
timeout = args.backlight_polling or 2, timeout = args.backlight_polling or 2,
autostart = true, autostart = true,
callback = function() callback = function()
@ -222,11 +222,5 @@ return function(args)
end end
}) })
-- }}} -- }}}
-- We don't need this widget if we don't have anything to show
if #widget_map == 0 then
backlight_update:stop()
power_update:stop()
return
end
return battery_widget return battery_widget
end end