From 7842ebb74f5703a5fa5a0db900e28559c7171463 Mon Sep 17 00:00:00 2001 From: Thomas Farstrike Date: Tue, 13 Jan 2026 01:13:02 +0100 Subject: [PATCH] OSUpdate: make sure still foreground before showing update info --- .../com.micropythonos.osupdate/assets/osupdate.py | 11 ++++++----- 1 file changed, 6 insertions(+), 5 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 7afd08de..c830475d 100644 --- a/internal_filesystem/builtin/apps/com.micropythonos.osupdate/assets/osupdate.py +++ b/internal_filesystem/builtin/apps/com.micropythonos.osupdate/assets/osupdate.py @@ -194,11 +194,12 @@ class OSUpdate(Activity): try: # Use UpdateChecker to fetch update info update_info = self.update_checker.fetch_update_info(hwid) - self.handle_update_info( - update_info["version"], - update_info["download_url"], - update_info["changelog"] - ) + if self.has_foreground(): + self.handle_update_info( + update_info["version"], + update_info["download_url"], + update_info["changelog"] + ) except ValueError as e: # JSON parsing or validation error (not network related) self.set_state(UpdateState.ERROR)