diff options
| author | Paul Buetow <paul@buetow.org> | 2026-04-02 07:37:19 +0300 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2026-04-02 07:37:19 +0300 |
| commit | f623b64d083d52cc9a278e9d229215a6686c6b29 (patch) | |
| tree | b82a3371d6a7d1d73d0f22fc6cec0ebcc9f389b1 /internal/gui/queue.go | |
| parent | c1a2a5a1df54611437d36e1b2f448f78b32e8eb1 (diff) | |
Fix GUI audio reload and bg-bg session state
Diffstat (limited to 'internal/gui/queue.go')
| -rw-r--r-- | internal/gui/queue.go | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/internal/gui/queue.go b/internal/gui/queue.go index cbf814c..1646708 100644 --- a/internal/gui/queue.go +++ b/internal/gui/queue.go @@ -196,7 +196,7 @@ func (q *WordQueue) Stop() { } // CompleteJob marks a job as completed with results -func (q *WordQueue) CompleteJob(jobID int, translation, audioFile, imageFile string) { +func (q *WordQueue) CompleteJob(jobID int, translation, audioFile, audioFileBack, imageFile string) { q.mu.Lock() defer q.mu.Unlock() @@ -204,6 +204,7 @@ func (q *WordQueue) CompleteJob(jobID int, translation, audioFile, imageFile str job.Status = StatusCompleted job.Translation = translation job.AudioFile = audioFile + job.AudioFileBack = audioFileBack job.ImageFile = imageFile job.CompletedAt = time.Now() |
