bugs/download-progress-bar-not-working-as-intended

- Fixed the progress bar being stuck in marquee mode.
This commit is contained in:
Sam Hoque
2021-07-17 14:25:05 +06:00
parent e0945a71ac
commit d66e6f55d3

View File

@@ -1346,7 +1346,10 @@ without him none of this would be possible
allSize /= 1000000;
downloaded /= 1000000;
Debug.WriteLine("Allsize: " + allSize + "\nDownloaded: " + downloaded + "\nValue: " + (((double)downloaded / (double)allSize) * 100));
try { progressBar.Value = Convert.ToInt32((((double)downloaded / (double)allSize) * 100)); } catch { }
try {
progressBar.Style = ProgressBarStyle.Continuous;
progressBar.Value = Convert.ToInt32((((double)downloaded / (double)allSize) * 100));
} catch { }
i++;
downloadSpeed /= 1000000;