From 0f2b16d1ccf461b706dd426727ed188c4ea3b60a Mon Sep 17 00:00:00 2001 From: Paul Buetow Date: Thu, 2 Apr 2026 07:45:23 +0300 Subject: Fix GUI selector sync and audio metadata model --- internal/gui/app.go | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) (limited to 'internal/gui/app.go') diff --git a/internal/gui/app.go b/internal/gui/app.go index a5924fc..7c9ecd7 100644 --- a/internal/gui/app.go +++ b/internal/gui/app.go @@ -1879,6 +1879,26 @@ func (a *Application) setActionButtonsEnabled(enabled bool) { } } +func (a *Application) syncCardTypeSelection(cardType internal.CardType) { + if a.cardTypeSelect == nil { + return + } + + selected := "English → Bulgarian" + if cardType.IsBgBg() { + selected = "Bulgarian → Bulgarian" + } + + if a.window == nil { + a.cardTypeSelect.SetSelected(selected) + return + } + + fyne.Do(func() { + a.cardTypeSelect.SetSelected(selected) + }) +} + func (a *Application) showProgress(message string) { // Check if we're already processing something a.mu.Lock() -- cgit v1.2.3