Skip to content

Commit 325270b

Browse files
OSUpdate: tweak UI
1 parent 60d630f commit 325270b

File tree

1 file changed

+2
-2
lines changed
  • internal_filesystem/builtin/apps/com.micropythonos.osupdate/assets

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ def network_changed(self, online):
125125
if self.current_state == UpdateState.DOWNLOADING:
126126
# Download will automatically pause due to connectivity check
127127
pass
128-
elif self.current_state == UpdateState.CHECKING_UPDATE:
128+
elif self.current_state == UpdateState.IDLE or self.current_state == UpdateState.CHECKING_UPDATE:
129129
# Was checking for updates when network dropped
130130
self.set_state(UpdateState.WAITING_WIFI)
131131
else:
@@ -216,7 +216,7 @@ def handle_update_info(self, version, download_url, changelog):
216216
label = "New"
217217
self.install_button.remove_state(lv.STATE.DISABLED)
218218
else:
219-
label = "Same latest"
219+
label = "No new"
220220
if (self.force_update.get_state() & lv.STATE.CHECKED):
221221
self.install_button.remove_state(lv.STATE.DISABLED)
222222
label += f" version: {version}\n\nDetails:\n\n{changelog}"

0 commit comments

Comments
 (0)