added battery changes so it won't show if no batt.
This commit is contained in:
parent
a946f8e4f2
commit
38ad8a276f
|
@ -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
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue