Skip to content

Commit

Permalink
Merge pull request #3996 from MichaelEischer/fix-ui-progress
Browse files Browse the repository at this point in the history
backup: fix stuck status bar
  • Loading branch information
rawtaz committed Nov 2, 2022
2 parents 59a9094 + 9354262 commit 92df039
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions internal/ui/backup/progress.go
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ func (p *Progress) Run(ctx context.Context) {
}

p.mu.Lock()
if p.scanStarted {
if !p.scanStarted {
p.mu.Unlock()
continue
}
Expand Down Expand Up @@ -231,11 +231,10 @@ func (p *Progress) ReportTotal(item string, s archiver.ScanStats) {
defer p.mu.Unlock()

p.total = Counter{Files: uint64(s.Files), Dirs: uint64(s.Dirs), Bytes: s.Bytes}
p.scanStarted = true

if item == "" {
p.printer.ReportTotal(item, p.start, s)
p.scanStarted = true
return
}
}

Expand Down

0 comments on commit 92df039

Please sign in to comment.