Show progress bars as aborted on export / import error

This commit is contained in:
Philipp Wolfer 2025-05-04 12:59:40 +02:00
parent 15d939e150
commit aae5123c3d
No known key found for this signature in database
GPG key ID: 8FDF744D4919943B
12 changed files with 35 additions and 21 deletions

View file

@ -213,6 +213,7 @@ type Progress struct {
Total int64
Elapsed int64
Completed bool
Aborted bool
}
func (p Progress) FromImportResult(result ImportResult) Progress {
@ -226,3 +227,8 @@ func (p Progress) Complete() Progress {
p.Completed = true
return p
}
func (p Progress) Abort() Progress {
p.Aborted = true
return p
}