Removed indeterminate progress bar because decryption stattup time is now insignificant.
This commit is contained in:
parent
f986462809
commit
f5e8e4cd7f
@ -177,7 +177,7 @@ namespace AaxDecrypter
|
|||||||
{
|
{
|
||||||
OutputFormat format = OutputFormat.Mp4a;
|
OutputFormat format = OutputFormat.Mp4a;
|
||||||
|
|
||||||
DecryptProgressUpdate?.Invoke(this, int.MaxValue);
|
DecryptProgressUpdate?.Invoke(this, 0);
|
||||||
|
|
||||||
if (File.Exists(outputFileName))
|
if (File.Exists(outputFileName))
|
||||||
FileExt.SafeDelete(outputFileName);
|
FileExt.SafeDelete(outputFileName);
|
||||||
|
|||||||
@ -64,14 +64,8 @@ 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");
|
||||||
|
|
||||||
if (percentage == int.MaxValue)
|
|
||||||
progressBar1.UIThread(() => progressBar1.Style = ProgressBarStyle.Marquee);
|
|
||||||
else
|
else
|
||||||
progressBar1.UIThread(() =>
|
progressBar1.UIThread(() => progressBar1.Value = percentage);
|
||||||
{
|
|
||||||
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