Skip to content
Commit 1507afa0 authored by David Edmundson's avatar David Edmundson
Browse files

Fix regression in last commit, don't show battery life as 100 when it's 0

There was code added (approved by me) to make sure we always cast
battery icon percent to an integer if it's undefined. It had the
unintended side effect that a battery life of 0 would also be 'cast' to
100.

When this is undefined we don't show the icon anyway, so
it doesn't really matter what value we fall back to.
parent f4b5dfbc
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment