From 9034c1c9606b871b4d794fee3673de12f8ec4e21 Mon Sep 17 00:00:00 2001 From: Thomas Farstrike Date: Sun, 19 Oct 2025 08:31:11 +0200 Subject: [PATCH] OSUpdate: don't update UI after exit --- .../builtin/apps/com.micropythonos.osupdate/assets/osupdate.py | 3 ++- 1 file changed, 2 insertions(+), 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 7dcfa3f2..0e547c33 100644 --- a/internal_filesystem/builtin/apps/com.micropythonos.osupdate/assets/osupdate.py +++ b/internal_filesystem/builtin/apps/com.micropythonos.osupdate/assets/osupdate.py @@ -198,7 +198,8 @@ class OSUpdate(Activity): lv.async_call(lambda l: self.status_label.set_text(f"Wrote {bytes_written} < {total_size} so not enough!"), None) self.install_button.remove_state(lv.STATE.DISABLED) # allow retry except Exception as e: - lv.async_call(lambda l: self.status_label.set_text(f"Update error: {e}"), None) + if self.keep_running: + lv.async_call(lambda l: self.status_label.set_text(f"Update error: {e}"), None) self.install_button.remove_state(lv.STATE.DISABLED) # allow retry # Non-class functions: