Skip to content

Commit db6b254

Browse files
Ensure progress bar reporting never exceeds 100%
1 parent 8f01cd4 commit db6b254

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

GUI/MainForm.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@ private void FinalOutput_KeyDown(object sender, KeyEventArgs e) {
167167

168168
private void UpdateOperationProgress() {
169169
this.statusLabel.Text = _resolver.StatusMessage;
170-
this.progressBar.Value = _resolver.PercentComplete;
170+
this.progressBar.Value = Math.Min(StackResolver.Operation100Percent, _resolver.PercentComplete);
171171
this.statusStrip.Refresh();
172172
Application.DoEvents();
173173
}

0 commit comments

Comments
 (0)