Skip to content

Keep the launcher update card through download and failure - #74

Open
dazacode wants to merge 1 commit into
mainfrom
fix/launcher-update-card
Open

dazacode wants to merge 1 commit into
mainfrom
fix/launcher-update-card

Conversation

@dazacode

Copy link
Copy Markdown
Owner

A player reported that pressing Update on the launcher's own update made the card disappear, with nothing happening after.

Cause

LauncherUpdate shows the card only when snap.updater.tag is set, but updater_view sent the tag only in the available state:

  • Pressing Update: the state became downloading with no tag, so the card vanished.
  • Download finished: the state became downloaded with no tag, so Restart now never appeared and the update stayed on disk, never installed.
  • Download failed: the state became failed, which the window had no case for, so the failure was hidden too.

Fix

  • Updater keeps the release a check found (release) through the download, a finished download and a failure. The view sends its tag in each of those states. A check that finds the version current forgets it.
  • The card has a failed state: the reason, Try again (downloads the kept release again, without a new check) and the download page. A failed restart shows its reason on the ready card.
  • download() no longer resets the state to idle when it's pressed while a download is already running or one is ready.
  • Two new messages (shell.update.failed, shell.update.page) in all six languages.

Testing

  • pnpm ci:check passes. The new test the_release_found_is_kept_through_its_download_and_a_failure covers keeping and forgetting the release.
  • Not tested with a real update from an older version to a published release.

🤖 Generated with Claude Code

The window shows the update card only for a release it can name, but the
launcher sent the tag only while the update was "available". Pressing Update
hid the card, and "Restart now" never appeared once the download finished.

Keep the release found through the download, a finished download and a
failure. A failed download says why and offers Try again (without a new
check) and the download page, and a failed restart shows its reason.
Pressing Update during a download no longer resets the updater to idle.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant