This commit is contained in:
infiniteCable2
2025-11-17 18:50:36 +01:00
parent 2f8366cd21
commit 1253917828
+2 -2
View File
@@ -41,11 +41,11 @@ class BatteryDetails(Widget):
self._display_enabled: bool = False
self._param_update_time: float = 0.0
self.update_params()
self._update_params()
def _update_state(self) -> None:
if time.monotonic() - self._param_update_time > 2.0:
self.update_params()
self._update_params()
if not self._display_enabled:
return