Skip to content

Commit

Permalink
Merge pull request #425 from anio/patch-1
Browse files Browse the repository at this point in the history
Fixed issue #424: Huston warning on fully charged battery
  • Loading branch information
streetturtle authored Nov 19, 2023
2 parents 3201c81 + 17f9ef0 commit cd2fdbe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion batteryarc-widget/batteryarc.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit cd2fdbe

Please sign in to comment.