From 0aaa91d30c9d4a2b2b62ba156659a82be589e21f Mon Sep 17 00:00:00 2001 From: Paul Buetow Date: Wed, 21 Jan 2026 21:59:13 +0200 Subject: debug: add debug output to audio regeneration functions Add console debug output to understand which side (front/back) is being regenerated for audio A and P key presses. --- internal/gui/app.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/internal/gui/app.go b/internal/gui/app.go index 7d48f75..9936c91 100644 --- a/internal/gui/app.go +++ b/internal/gui/app.go @@ -1052,6 +1052,7 @@ func (a *Application) onRegenerateAudio() { // Store the word we're generating for wordForGeneration := a.currentWord + fmt.Printf("DEBUG onRegenerateAudio: word='%s', isBgBg=%v\n", wordForGeneration, isBgBg) a.startOperation(wordForGeneration) defer a.endOperation(wordForGeneration) @@ -1145,6 +1146,7 @@ func (a *Application) onRegenerateBackAudio() { if translation == "" { translation = strings.TrimSpace(a.translationEntry.Text) } + fmt.Printf("DEBUG onRegenerateBackAudio: front='%s', back='%s'\n", a.currentWord, translation) wordForGeneration := a.currentWord a.startOperation(wordForGeneration) -- cgit v1.2.3