Merge pull request #425 from anio/patch-1

Fixed issue #424: Huston warning on fully charged battery
This commit is contained in:
streetturtle 2023-11-19 13:50:56 -05:00 committed by GitHub
commit cd2fdbeca1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -119,7 +119,7 @@ local function worker(user_args)
text.text = ''
end
if charge < 15 then
if charge < 15 and charge > 0 then
widget.colors = { low_level_color }
if enable_battery_warning and status ~= 'Charging' and os.difftime(os.time(), last_battery_check) > 300 then
-- if 5 minutes have elapsed since the last warning