Added "indeterminate" progress bar mode to beginning of Step3.

This commit is contained in:
Michael Bucari-Tovo 2021-06-30 21:55:22 -06:00
parent 1ee6f3b9f2
commit 3aed3a5def
2 changed files with 9 additions and 1 deletions

View File

@ -152,6 +152,7 @@ namespace AaxDecrypter
public bool Step3_DownloadAndCombine()
{
DecryptProgressUpdate?.Invoke(this, int.MaxValue);
bool userSuppliedChapters = chapters != null;
string metadataPath = null;

View File

@ -64,7 +64,14 @@ namespace LibationWinForms.BookLiberation
if (percentage == 0)
remainingTimeLbl.UIThread(() => remainingTimeLbl.Text = "ETA:\r\n0 sec");
progressBar1.UIThread(() => progressBar1.Value = percentage);
if (percentage == int.MaxValue)
progressBar1.UIThread(() => progressBar1.Style = ProgressBarStyle.Marquee);
else
progressBar1.UIThread(() =>
{
progressBar1.Value = percentage;
progressBar1.Style = ProgressBarStyle.Blocks;
});
}
public void UpdateRemainingTime(TimeSpan remaining)