diff options
| author | Paul Buetow <paul@buetow.org> | 2026-04-13 12:44:07 +0300 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2026-04-13 12:44:07 +0300 |
| commit | 3c2e5839e40db29951ee6db37e55cb2e094e4ce4 (patch) | |
| tree | 8780c7055f28a58fccdac73af514bad32d464e2d /internal/gui/navigation_handler.go | |
| parent | 65430e9876a32988839deb7a70dc1e42da21cf64 (diff) | |
Release v0.29.0: display card counter (Card X / N) in the GUI status barv0.29.0
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Diffstat (limited to 'internal/gui/navigation_handler.go')
| -rw-r--r-- | internal/gui/navigation_handler.go | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/internal/gui/navigation_handler.go b/internal/gui/navigation_handler.go index 7bc3976..5d79cd6 100644 --- a/internal/gui/navigation_handler.go +++ b/internal/gui/navigation_handler.go @@ -39,7 +39,9 @@ func (n *NavigationHandler) scanExistingWords() { } // updateNavigation updates the navigation button states based on the current -// combined word list (existing words on disk + completed queue jobs). +// combined word list (existing words on disk + completed queue jobs). It also +// refreshes the card counter label ("Card X / N") so it stays in sync with the +// current position. func (n *NavigationHandler) updateNavigation() { allWords := n.getAllAvailableWords() @@ -61,6 +63,9 @@ func (n *NavigationHandler) updateNavigation() { n.app.prevWordBtn.Disable() n.app.nextWordBtn.Disable() } + + // Keep the counter label in sync with the updated index and total. + n.app.updateCardCounter(n.app.currentWordIndex, len(allWords)) } // getAllAvailableWords returns all words from disk and completed queue jobs, |
