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

Commit 194b3d0

Browse files
committed
progress bar bug fix
1 parent 8f7a543 commit 194b3d0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Kea/Main.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ private async Task DownloadQueueAsync()
149149
await Task.Run(() => downloadComic(t));
150150
}
151151
processInfo.Text = "done!";
152-
progressBar.Value = 0;
152+
progressBar.Value = progressBar.Minimum;
153153
}
154154

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

0 commit comments

Comments
 (0)