mirror of
https://github.com/sunnypilot/sunnypilot.git
synced 2026-06-24 18:42:07 +08:00
@@ -137,7 +137,7 @@ class MiciHomeLayout(Widget):
|
||||
self._did_long_press = False
|
||||
self._is_pressed_prev = False
|
||||
|
||||
self._version_text = None
|
||||
self._version_text = self._get_version_text()
|
||||
self._experimental_mode = False
|
||||
|
||||
self._experimental_icon = IconWidget("icons_mici/experimental_mode.png", (48, 48))
|
||||
@@ -163,7 +163,6 @@ class MiciHomeLayout(Widget):
|
||||
|
||||
def show_event(self):
|
||||
super().show_event()
|
||||
self._version_text = self._get_version_text()
|
||||
self._update_params()
|
||||
|
||||
def _update_params(self):
|
||||
@@ -187,8 +186,6 @@ class MiciHomeLayout(Widget):
|
||||
self._did_long_press = True
|
||||
|
||||
if rl.get_time() - self._last_refresh > 5.0:
|
||||
# Update version text
|
||||
self._version_text = self._get_version_text()
|
||||
self._last_refresh = rl.get_time()
|
||||
self._update_params()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user