Skip to content
This repository has been archived by the owner on Mar 30, 2023. It is now read-only.

Commit

Permalink
progress bar bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
RustingRobot committed Apr 2, 2021
1 parent 8f7a543 commit 194b3d0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Kea/Main.cs
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ private async Task DownloadQueueAsync()
await Task.Run(() => downloadComic(t));
}
processInfo.Text = "done!";
progressBar.Value = 0;
progressBar.Value = progressBar.Minimum;
}

private async Task GetChapterAsync(string line)
Expand Down Expand Up @@ -223,7 +223,7 @@ private void downloadComic(int t)
if (endNr > ToonChapters[t].Length) endNr = ToonChapters[t].Length;
processInfo.Invoke((MethodInvoker)delegate
{
progressBar.Minimum = (int)startNr;
progressBar.Minimum = (int)startNr * 100;
progressBar.Maximum = (int)endNr * 100;
});
for (int i = (int)startNr; i < endNr; i++) //...and for each chapter in that comic...
Expand Down

0 comments on commit 194b3d0

Please sign in to comment.