OSUpdate: simplify thread safety

This commit is contained in:
Thomas Farstrike
2026-01-04 21:41:25 +01:00
parent 9ac8fb2e41
commit a3fc2b1638
@@ -38,7 +38,7 @@ class OSUpdate(Activity):
"""Change app state and update UI accordingly."""
print(f"OSUpdate: state change {self.current_state} -> {new_state}")
self.current_state = new_state
self.update_ui_threadsafe_if_foreground(self._update_ui_for_state) # Since called from both threads, be threadsafe
self._update_ui_for_state()
def onCreate(self):
self.main_screen = lv.obj()