Skip to content

Commit a3fc2b1

Browse files
OSUpdate: simplify thread safety
1 parent 9ac8fb2 commit a3fc2b1

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • internal_filesystem/builtin/apps/com.micropythonos.osupdate/assets

internal_filesystem/builtin/apps/com.micropythonos.osupdate/assets/osupdate.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ def set_state(self, new_state):
3838
"""Change app state and update UI accordingly."""
3939
print(f"OSUpdate: state change {self.current_state} -> {new_state}")
4040
self.current_state = new_state
41-
self.update_ui_threadsafe_if_foreground(self._update_ui_for_state) # Since called from both threads, be threadsafe
41+
self._update_ui_for_state()
4242

4343
def onCreate(self):
4444
self.main_screen = lv.obj()

0 commit comments

Comments
 (0)