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
No related branches found
No related tags found
1 merge request!572Make the battery percentage go up to 100%
Pipeline #9241 passed
...@@ -560,7 +560,7 @@ class BatteryIcon(Icon): ...@@ -560,7 +560,7 @@ class BatteryIcon(Icon):
def __init__(self) -> None: def __init__(self) -> None:
super().__init__() super().__init__()
self._percent = 100.0 self._percent = 100
def visible(self) -> bool: def visible(self) -> bool:
return power.has_battery 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