Skip to content

feat(updates): add a manual update check next to the version - #869

Merged
marcinz606 merged 1 commit into
mainfrom
feat/manual-update-check-button
Aug 16, 2026
Merged

feat(updates): add a manual update check next to the version#869
marcinz606 merged 1 commit into
mainfrom
feat/manual-update-check-button

Conversation

@marcinz606

Copy link
Copy Markdown
Owner

What

The release check ran once per app launch. If nothing was new, there was no visible way to ask again — check_for_updates() existed but only behind an unbound keyboard shortcut.

A small button now sits beside the version number in the sidebar header:

  • (muted) — nothing new is known; click to ask GitHub. NegPy reports "up to date" when there is nothing.
  • (green) — an update was found; click to open the update window.

The button disables itself while a check runs, because every click starts its own UpdateCheckWorker thread.

The green ⬇ Update Available: vX.Y.Z banner stays as it was — it names the version, the button is the control.

Changes

  • header.pyupdate_button next to ver_label, check_requested signal, set_update_state() / set_checking().
  • session_panel.py — wires the signal to the existing check_for_updates(); both the startup and the manual path already route through _on_update_checked, so the button follows both.
  • Tooltip goes through tooltip_with_shortcut("Check for updates", "check_for_updates"), so a key the user assigns shows up there. The registry entry already existed.
  • docs/USER_GUIDE.md — §2 header and §15 Updating NegPy.

Tests

3 new tests in tests/test_session_panel.py: the button starts a check and locks out a second one, it returns to the check state when nothing is new, and it offers the update once one is found.

make all green — 4214 passed, lint and ty clean.

The release check only ran once per launch, and the manual re-check was
reachable only from an unbound shortcut. A button beside the version
number now runs it on demand: a refresh glyph while nothing is new, the
green download arrow once an update is found.
@marcinz606
marcinz606 merged commit 8e42cf5 into main Aug 16, 2026
1 check passed
@marcinz606
marcinz606 deleted the feat/manual-update-check-button branch August 16, 2026 20:34
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