diff options
| author | Paul Buetow <paul@buetow.org> | 2026-01-21 21:49:18 +0200 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2026-01-21 21:49:18 +0200 |
| commit | f3ddb7a1a486e8e3c905a556ebb00e8323b42021 (patch) | |
| tree | 7945bdcb289ed3004912808d7aab970a6ab239f8 | |
| parent | 3fca6ea6b307d6b6c228030fde7a906db078b9db (diff) | |
cleanup: remove debug logging from GUI navigation
Now that the root cause is fixed in the processor, remove the debug
logging that was added for troubleshooting.
| -rw-r--r-- | internal/gui/navigation.go | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/internal/gui/navigation.go b/internal/gui/navigation.go index 82176d2..1755397 100644 --- a/internal/gui/navigation.go +++ b/internal/gui/navigation.go @@ -429,40 +429,27 @@ func (a *Application) loadExistingFiles(word string) { frontAudio := filepath.Join(wordDir, fmt.Sprintf("audio_front.%s", a.config.AudioFormat)) backAudio := filepath.Join(wordDir, fmt.Sprintf("audio_back.%s", a.config.AudioFormat)) - fmt.Printf("Looking for front audio at: %s\n", frontAudio) - fmt.Printf("Looking for back audio at: %s\n", backAudio) - if _, err := os.Stat(frontAudio); err == nil { - fmt.Printf("Found front audio file: %s\n", frontAudio) a.currentAudioFile = frontAudio fyne.Do(func() { a.audioPlayer.SetAudioFile(frontAudio) }) - } else { - fmt.Printf("Front audio file not found (error: %v)\n", err) } if _, err := os.Stat(backAudio); err == nil { - fmt.Printf("Found back audio file: %s\n", backAudio) a.currentAudioFileBack = backAudio fyne.Do(func() { a.audioPlayer.SetBackAudioFile(backAudio) }) - } else { - fmt.Printf("Back audio file not found (error: %v)\n", err) } } else { // For en-bg cards, load standard audio file audioFile := filepath.Join(wordDir, fmt.Sprintf("audio.%s", a.config.AudioFormat)) - fmt.Printf("Looking for audio at: %s\n", audioFile) if _, err := os.Stat(audioFile); err == nil { - fmt.Printf("Found audio file: %s\n", audioFile) a.currentAudioFile = audioFile fyne.Do(func() { a.audioPlayer.SetAudioFile(audioFile) }) - } else { - fmt.Printf("Audio file not found (error: %v)\n", err) } // Hide back audio button for en-bg cards a.currentAudioFileBack = "" |
