From d6222b82e85d8df91c0965ba8fd794b594e694e8 Mon Sep 17 00:00:00 2001 From: Thomas Farstrike Date: Tue, 14 Oct 2025 21:37:23 +0200 Subject: [PATCH] OSUpdate: also show feedback in case of simulation --- .../builtin/apps/com.micropythonos.osupdate/assets/osupdate.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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 c14260a6..7dcfa3f2 100644 --- a/internal_filesystem/builtin/apps/com.micropythonos.osupdate/assets/osupdate.py +++ b/internal_filesystem/builtin/apps/com.micropythonos.osupdate/assets/osupdate.py @@ -186,12 +186,11 @@ class OSUpdate(Activity): response.close() try: if bytes_written >= total_size: + lv.async_call(lambda l: self.status_label.set_text("Update finished! Please restart."), None) if not simulate: # if the update was completely installed next_partition.set_boot() import machine machine.reset() - # In case it didn't reset: - lv.async_call(lambda l: self.status_label.set_text("Update finished! Please restart."), None) # self.install_button stays disabled to prevent the user from installing the same update twice else: print("This is an OSUpdate simulation, not attempting to restart the device.")