Skip to content
Snippets Groups Projects
Verified Commit e542eb59 authored by dos's avatar dos
Browse files

py,st3m: overlays: Initialize battery percentage to 100 as an int

Otherwise it gets displayed as "100.0", and because value update is
guarded with equality check it doesn't fix itself until the percentage
gets down to 99%.
parent 0869af63
Branches
No related tags found
No related merge requests found
......@@ -560,7 +560,7 @@ class BatteryIcon(Icon):
def __init__(self) -> None:
super().__init__()
self._percent = 100.0
self._percent = 100
def visible(self) -> bool:
return power.has_battery
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment