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

@ -24,6 +24,7 @@ Changelog [format](http://keepachangelog.com/en/1.0.0/)
* Generic bug report window title. * Generic bug report window title.
* Fix missing check for unencrypted recipients during sending. * Fix missing check for unencrypted recipients during sending.
* Version checking for catalina. * Version checking for catalina.
* GODT-703 Import-Export showed always at least one total message.
## [IE 1.0.x] Congo (v1.0.0 live 2020-09-08) ## [IE 1.0.x] Congo (v1.0.0 live 2020-09-08)

View File

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