From 3c2e5839e40db29951ee6db37e55cb2e094e4ce4 Mon Sep 17 00:00:00 2001 From: Paul Buetow Date: Mon, 13 Apr 2026 12:44:07 +0300 Subject: Release v0.29.0: display card counter (Card X / N) in the GUI status bar Co-Authored-By: Claude Sonnet 4.6 --- internal/gui/navigation_handler.go | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'internal/gui/navigation_handler.go') 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, -- cgit v1.2.3