From 3b059edbeca54bc62b1de5d2a8d923fb115716d8 Mon Sep 17 00:00:00 2001 From: David Schlachter Date: Tue, 13 Jan 2026 14:56:52 -0500 Subject: Only initialize progress bar when setting up --- ui.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ui.go') diff --git a/ui.go b/ui.go index 95fed74..5d374ef 100644 --- a/ui.go +++ b/ui.go @@ -85,7 +85,6 @@ func initialModel(c *http.Client, db *sql.DB, apiURL, ankiDeck, ankiModel, rawDi wordInput: input, definitionViewport: textbox, - importProgress: progress.New(progress.WithDefaultGradient()), ankiDeck: ankiDeck, ankiModel: ankiModel, @@ -110,6 +109,7 @@ func (m model) Update(msg tea.Msg) (tea.Model, tea.Cmd) { switch msg := msg.(type) { case isDictionaryEmptyMsg: if bool(msg) { // We need to populate the dictionary + m.importProgress = progress.New(progress.WithDefaultGradient()) return m, setupPopulator(&m.dp) } else { // The dictionary is ready m.dictionaryReady = true -- cgit v1.2.3