diff options
| author | Paul Buetow <paul@buetow.org> | 2025-07-16 21:44:28 +0300 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2025-07-16 21:44:28 +0300 |
| commit | e2e75315e5e7c3eaccdc38881bd2fa669bb9dda5 (patch) | |
| tree | c751e8c9b4d1efd858310fba54451e791c67737b /internal/gui/queue.go | |
| parent | 6b0b4c9ce28b88ab0abbff03c5f367d89ba97c89 (diff) | |
only one img per card
Diffstat (limited to 'internal/gui/queue.go')
| -rw-r--r-- | internal/gui/queue.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/internal/gui/queue.go b/internal/gui/queue.go index aaa0c55..df39908 100644 --- a/internal/gui/queue.go +++ b/internal/gui/queue.go @@ -13,7 +13,7 @@ type WordJob struct { Word string Translation string AudioFile string - ImageFiles []string + ImageFile string // Changed from ImageFiles []string to single image Status JobStatus Error error StartedAt time.Time @@ -194,7 +194,7 @@ func (q *WordQueue) Stop() { } // CompleteJob marks a job as completed with results -func (q *WordQueue) CompleteJob(jobID int, translation, audioFile string, imageFiles []string) { +func (q *WordQueue) CompleteJob(jobID int, translation, audioFile, imageFile string) { q.mu.Lock() defer q.mu.Unlock() @@ -202,7 +202,7 @@ func (q *WordQueue) CompleteJob(jobID int, translation, audioFile string, imageF job.Status = StatusCompleted job.Translation = translation job.AudioFile = audioFile - job.ImageFiles = imageFiles + job.ImageFile = imageFile job.CompletedAt = time.Now() delete(q.processing, jobID) |
