mirror of
https://git.sr.ht/~phw/scotty
synced 2025-05-31 10:58:35 +02:00
Import progress shows actual number of processed items
This commit is contained in:
parent
12eb7acd98
commit
83eac8c801
1 changed files with 4 additions and 1 deletions
|
@ -87,7 +87,10 @@ func (u *progressBarUpdater) update() {
|
|||
|
||||
func (u *progressBarUpdater) updateExportProgress(progress *models.Progress) {
|
||||
bar := u.exportBar
|
||||
u.totalItems = progress.TotalItems
|
||||
if progress.TotalItems != u.totalItems {
|
||||
u.totalItems = progress.TotalItems
|
||||
u.importBar.SetTotal(int64(u.totalItems), false)
|
||||
}
|
||||
|
||||
if progress.Aborted {
|
||||
bar.Abort(false)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue