Update total even if its zero

This commit is contained in:
Michal Horejsek
2020-09-23 09:24:58 +02:00
parent a73b30ed9e
commit 85220848d0
2 changed files with 2 additions and 3 deletions

View File

@ -338,9 +338,7 @@ func (f *FrontendQt) setProgressManager(progress *transfer.Progress) {
break
}
failed, imported, _, _, total := progress.GetCounts()
if total != 0 {
f.Qml.SetTotal(int(total))
}
f.Qml.SetTotal(int(total))
f.Qml.SetProgressFails(int(failed))
f.Qml.SetProgressDescription(progress.PauseReason())
if total > 0 {