fix: quit after done in progress
This commit is contained in:
parent
aa90dfa983
commit
c3f879b379
@ -68,6 +68,7 @@ func (m model) Update(msg tea.Msg) (tea.Model, tea.Cmd) {
|
|||||||
m.remaining = time.Duration(msg.remaining) * time.Second
|
m.remaining = time.Duration(msg.remaining) * time.Second
|
||||||
if m.percent >= 1.0 {
|
if m.percent >= 1.0 {
|
||||||
m.done = true
|
m.done = true
|
||||||
|
return m, tea.Quit
|
||||||
}
|
}
|
||||||
return m, nil
|
return m, nil
|
||||||
case tea.WindowSizeMsg:
|
case tea.WindowSizeMsg:
|
||||||
|
@ -251,11 +251,11 @@ msgstr ""
|
|||||||
msgid "Downloading source"
|
msgid "Downloading source"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: internal/dl/progress_tui.go:99
|
#: internal/dl/progress_tui.go:100
|
||||||
msgid "%s: done!\n"
|
msgid "%s: done!\n"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: internal/dl/progress_tui.go:103
|
#: internal/dl/progress_tui.go:104
|
||||||
msgid "%s %s downloading at %s/s\n"
|
msgid "%s %s downloading at %s/s\n"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
|
@ -263,11 +263,11 @@ msgstr "Источник обновлён и связан с пунктом на
|
|||||||
msgid "Downloading source"
|
msgid "Downloading source"
|
||||||
msgstr "Скачивание источника"
|
msgstr "Скачивание источника"
|
||||||
|
|
||||||
#: internal/dl/progress_tui.go:99
|
#: internal/dl/progress_tui.go:100
|
||||||
msgid "%s: done!\n"
|
msgid "%s: done!\n"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: internal/dl/progress_tui.go:103
|
#: internal/dl/progress_tui.go:104
|
||||||
msgid "%s %s downloading at %s/s\n"
|
msgid "%s %s downloading at %s/s\n"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user