Possible download manager fix.

This commit is contained in:
Michael 2017-02-09 18:37:53 -05:00
parent c544e4081d
commit 8b0e4f34b1

View file

@ -21,6 +21,8 @@ namespace ShiftOS.WinForms
lbshiftneturl.Text = d.ShiftnetUrl;
pcicon.Image = FileSkimmerBackend.GetImage(d.Destination);
int bytesTransferred = 0;
pgprogress.Maximum = DownloadManager.Downloads[index].Bytes.Length;
pgprogress.Value = DownloadManager.Downloads[index].Progress;
DownloadManager.ProgressUpdate += (i, p) =>
{
try