From d44df9d00d1654275efed641fcbeb2046b79b441 Mon Sep 17 00:00:00 2001 From: Michael Eischer Date: Wed, 30 Sep 2020 15:58:56 +0200 Subject: [PATCH] backup: Always remove the status lines once a backup ends --- internal/ui/backup.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/internal/ui/backup.go b/internal/ui/backup.go index 29a93573d..85009cdce 100644 --- a/internal/ui/backup.go +++ b/internal/ui/backup.go @@ -91,6 +91,8 @@ func (b *Backup) Run(ctx context.Context) error { t := time.NewTicker(time.Second) defer t.Stop() defer close(b.closed) + // Reset status when finished + defer b.term.SetStatus([]string{""}) for { select {