added battery changes so it won't show if no batt.

This commit is contained in:
Chris Cochrun 2020-06-04 06:59:50 -05:00
parent a946f8e4f2
commit 38ad8a276f

View file

@ -88,6 +88,7 @@ local return_button = function()
if (stdout == nil or stdout == '') then if (stdout == nil or stdout == '') then
battery_tooltip:set_text('No battery detected!') battery_tooltip:set_text('No battery detected!')
battery_widget:set_visible(false)
return return
end end