diff options
| author | Paul Buetow <paul@buetow.org> | 2026-01-21 21:59:13 +0200 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2026-01-21 21:59:13 +0200 |
| commit | 0aaa91d30c9d4a2b2b62ba156659a82be589e21f (patch) | |
| tree | 7a912d58ec2b557bd74c680efc55ee71f5cba9d2 | |
| parent | 7b6909ef097a38e06b88185304eb00eecd30a163 (diff) | |
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.
| -rw-r--r-- | internal/gui/app.go | 2 |
1 files changed, 2 insertions, 0 deletions
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) |
