summaryrefslogtreecommitdiff
path: root/internal/gui/queue.go
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2026-01-21 21:43:40 +0200
committerPaul Buetow <paul@buetow.org>2026-01-21 21:43:40 +0200
commit8a4b935792c50101cf65b36e44f376c90c2d08c1 (patch)
tree2a8288e935fe89738fbc1243253bb638dc2620a8 /internal/gui/queue.go
parent2bd22f79f739136a7d30cf156979e2f2b23b7c65 (diff)
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.
Diffstat (limited to 'internal/gui/queue.go')
-rw-r--r--internal/gui/queue.go2
1 files changed, 2 insertions, 0 deletions
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