From a3fc2b16382b26401938fb67d477d414a0eed6e4 Mon Sep 17 00:00:00 2001 From: Thomas Farstrike Date: Sun, 4 Jan 2026 21:41:25 +0100 Subject: [PATCH] OSUpdate: simplify thread safety --- .../builtin/apps/com.micropythonos.osupdate/assets/osupdate.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal_filesystem/builtin/apps/com.micropythonos.osupdate/assets/osupdate.py b/internal_filesystem/builtin/apps/com.micropythonos.osupdate/assets/osupdate.py index cfde5528..b0143613 100644 --- a/internal_filesystem/builtin/apps/com.micropythonos.osupdate/assets/osupdate.py +++ b/internal_filesystem/builtin/apps/com.micropythonos.osupdate/assets/osupdate.py @@ -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()