From db6b254c244ce72745bca957ccd3185ffff20b50 Mon Sep 17 00:00:00 2001 From: Arvind Shyamsundar <16342666+arvindshmicrosoft@users.noreply.github.com> Date: Fri, 22 Aug 2025 18:46:59 -0700 Subject: [PATCH] Ensure progress bar reporting never exceeds 100% --- GUI/MainForm.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/GUI/MainForm.cs b/GUI/MainForm.cs index 9652141..ee19fed 100644 --- a/GUI/MainForm.cs +++ b/GUI/MainForm.cs @@ -167,7 +167,7 @@ private void FinalOutput_KeyDown(object sender, KeyEventArgs e) { private void UpdateOperationProgress() { this.statusLabel.Text = _resolver.StatusMessage; - this.progressBar.Value = _resolver.PercentComplete; + this.progressBar.Value = Math.Min(StackResolver.Operation100Percent, _resolver.PercentComplete); this.statusStrip.Refresh(); Application.DoEvents(); }