From 8a4b935792c50101cf65b36e44f376c90c2d08c1 Mon Sep 17 00:00:00 2001 From: Paul Buetow Date: Wed, 21 Jan 2026 21:43:40 +0200 Subject: improve: better audio player UI and debugging for bg-bg cards - Add debug logging to navigation.go to diagnose audio file loading issues Prints paths being checked and whether files are found - Improve AudioPlayer UI for Bulgarian-Bulgarian cards: - Add labels showing 'Front' and 'Back' for bg-bg audio buttons - Labels only show when audio files are actually loaded - Better visual distinction between the two playable audios - Reorganized button layout with VBox for cleaner appearance - Track bg-bg state in AudioPlayer (isBgBg field) - Automatically set when back audio file is loaded - Used to determine when to show labels This makes it clearer that Bulgarian-Bulgarian cards have two independently playable audio outputs, and helps debug why audio isn't being loaded. --- internal/gui/queue.go | 2 ++ 1 file changed, 2 insertions(+) (limited to 'internal/gui/queue.go') diff --git a/internal/gui/queue.go b/internal/gui/queue.go index 1c52c9f..86c6ffd 100644 --- a/internal/gui/queue.go +++ b/internal/gui/queue.go @@ -13,6 +13,7 @@ type WordJob struct { Word string Translation string AudioFile string + AudioFileBack string // Back audio file (only for bg-bg cards) ImageFile string // Changed from ImageFiles []string to single image Status JobStatus Error error @@ -20,6 +21,7 @@ type WordJob struct { CompletedAt time.Time CustomPrompt string // Custom prompt for image generation NeedsTranslation bool // Whether translation is needed + CardType string // Card type: "en-bg" or "bg-bg" } // JobStatus represents the current state of a job -- cgit v1.2.3