diff options
| author | Paul Buetow <paul@buetow.org> | 2026-04-02 09:24:23 +0300 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2026-04-02 09:24:23 +0300 |
| commit | 6ce9123de04ffff961cbf1da73648679216ff637 (patch) | |
| tree | 7a8c12f3499b0a62471627773fde9588a14c9261 /internal/gui | |
| parent | faee049f51a3e6125a710fae3e713638bd68dd48 (diff) | |
Fix verification gate lint and test issues
Diffstat (limited to 'internal/gui')
| -rw-r--r-- | internal/gui/app.go | 7 | ||||
| -rw-r--r-- | internal/gui/generator.go | 2 |
2 files changed, 5 insertions, 4 deletions
diff --git a/internal/gui/app.go b/internal/gui/app.go index a69b178..5d24e6d 100644 --- a/internal/gui/app.go +++ b/internal/gui/app.go @@ -629,8 +629,9 @@ func (a *Application) onSubmit() { return } - // Handle English to Bulgarian translation first if needed - if translationDirection == "en-to-bg" { + // Handle translation first if needed. + switch translationDirection { + case "en-to-bg": a.updateStatus(fmt.Sprintf("Translating '%s' to Bulgarian...", secondaryText)) bulgarian, err := a.translateEnglishToBulgarian(secondaryText) if err != nil { @@ -643,7 +644,7 @@ func (a *Application) onSubmit() { a.currentWord = bulgarian a.saveTranslation() needsTranslation = false - } else if translationDirection == "bg-to-en" { + case "bg-to-en": a.updateStatus(fmt.Sprintf("Translating '%s' to English...", bulgarianText)) english, err := a.translateWord(bulgarianText) if err != nil { diff --git a/internal/gui/generator.go b/internal/gui/generator.go index 45cd7bc..f19f46e 100644 --- a/internal/gui/generator.go +++ b/internal/gui/generator.go @@ -383,7 +383,7 @@ func (a *Application) newImageSearcher() (promptAwareImageClient, error) { config = DefaultConfig() } if config.GoogleAPIKey == "" { - return nil, fmt.Errorf("Google API key is required for image generation") + return nil, fmt.Errorf("google API key is required for image generation") } nanoBananaConfig := &image.NanoBananaConfig{ |
