From f5e8e4cd7f85b7561ce81a6c48619640c5fe0637 Mon Sep 17 00:00:00 2001 From: Michael Bucari-Tovo Date: Thu, 15 Jul 2021 00:17:59 -0600 Subject: [PATCH] Removed indeterminate progress bar because decryption stattup time is now insignificant. --- AaxDecrypter/AaxcDownloadConverter.cs | 2 +- LibationWinForms/BookLiberation/DecryptForm.cs | 8 +------- 2 files changed, 2 insertions(+), 8 deletions(-) diff --git a/AaxDecrypter/AaxcDownloadConverter.cs b/AaxDecrypter/AaxcDownloadConverter.cs index f7dc13ef..f75f2a39 100644 --- a/AaxDecrypter/AaxcDownloadConverter.cs +++ b/AaxDecrypter/AaxcDownloadConverter.cs @@ -177,7 +177,7 @@ namespace AaxDecrypter { OutputFormat format = OutputFormat.Mp4a; - DecryptProgressUpdate?.Invoke(this, int.MaxValue); + DecryptProgressUpdate?.Invoke(this, 0); if (File.Exists(outputFileName)) FileExt.SafeDelete(outputFileName); diff --git a/LibationWinForms/BookLiberation/DecryptForm.cs b/LibationWinForms/BookLiberation/DecryptForm.cs index 6788a774..3dcf7360 100644 --- a/LibationWinForms/BookLiberation/DecryptForm.cs +++ b/LibationWinForms/BookLiberation/DecryptForm.cs @@ -64,14 +64,8 @@ namespace LibationWinForms.BookLiberation if (percentage == 0) remainingTimeLbl.UIThread(() => remainingTimeLbl.Text = "ETA:\r\n0 sec"); - if (percentage == int.MaxValue) - progressBar1.UIThread(() => progressBar1.Style = ProgressBarStyle.Marquee); else - progressBar1.UIThread(() => - { - progressBar1.Value = percentage; - progressBar1.Style = ProgressBarStyle.Blocks; - }); + progressBar1.UIThread(() => progressBar1.Value = percentage); } public void UpdateRemainingTime(TimeSpan remaining)