Added "indeterminate" progress bar mode to beginning of Step3.
This commit is contained in:
parent
1ee6f3b9f2
commit
3aed3a5def
@ -152,6 +152,7 @@ namespace AaxDecrypter
|
|||||||
|
|
||||||
public bool Step3_DownloadAndCombine()
|
public bool Step3_DownloadAndCombine()
|
||||||
{
|
{
|
||||||
|
DecryptProgressUpdate?.Invoke(this, int.MaxValue);
|
||||||
bool userSuppliedChapters = chapters != null;
|
bool userSuppliedChapters = chapters != null;
|
||||||
|
|
||||||
string metadataPath = null;
|
string metadataPath = null;
|
||||||
|
|||||||
@ -64,7 +64,14 @@ namespace LibationWinForms.BookLiberation
|
|||||||
if (percentage == 0)
|
if (percentage == 0)
|
||||||
remainingTimeLbl.UIThread(() => remainingTimeLbl.Text = "ETA:\r\n0 sec");
|
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)
|
public void UpdateRemainingTime(TimeSpan remaining)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user