mirror of
https://github.com/claunia/apprepodbmgr.git
synced 2025-12-16 19:24:42 +00:00
Correct progress bar on compression.
This commit is contained in:
@@ -1,3 +1,8 @@
|
||||
2017-05-11 Natalia Portillo <claunia@claunia.com>
|
||||
|
||||
* Workers.cs:
|
||||
Correct progress bar on compression.
|
||||
|
||||
2017-05-10 Natalia Portillo <claunia@claunia.com>
|
||||
|
||||
* Context.cs:
|
||||
|
||||
@@ -929,7 +929,7 @@ namespace osrepodbmgr.Core
|
||||
zipCounter++;
|
||||
}
|
||||
|
||||
if(UpdateProgress != null && e.CurrentEntry != null)
|
||||
if(UpdateProgress != null && e.CurrentEntry != null && e.EntriesTotal > 0)
|
||||
UpdateProgress("Compressing...", e.CurrentEntry.FileName, zipCounter, e.EntriesTotal);
|
||||
if(UpdateProgress2 != null)
|
||||
UpdateProgress2(string.Format("{0:P}", e.BytesTransferred / (double)e.TotalBytesToTransfer),
|
||||
|
||||
Reference in New Issue
Block a user