We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent cc5f563 commit 7842ebbCopy full SHA for 7842ebb
1 file changed
internal_filesystem/builtin/apps/com.micropythonos.osupdate/assets/osupdate.py
@@ -194,11 +194,12 @@ def show_update_info(self, timer=None):
194
try:
195
# Use UpdateChecker to fetch update info
196
update_info = self.update_checker.fetch_update_info(hwid)
197
- self.handle_update_info(
198
- update_info["version"],
199
- update_info["download_url"],
200
- update_info["changelog"]
201
- )
+ if self.has_foreground():
+ self.handle_update_info(
+ update_info["version"],
+ update_info["download_url"],
+ update_info["changelog"]
202
+ )
203
except ValueError as e:
204
# JSON parsing or validation error (not network related)
205
self.set_state(UpdateState.ERROR)
0 commit comments