Skip to content

Commit 5701787

Browse files
Ensure progress bar reporting never exceeds 100% (#151)
1 parent b866fec commit 5701787

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
@@ -181,7 +181,7 @@ private void FinalOutput_KeyDown(object sender, KeyEventArgs e) {
181181

182182
private void UpdateOperationProgress() {
183183
this.statusLabel.Text = _resolver.StatusMessage;
184-
this.progressBar.Value = _resolver.PercentComplete;
184+
this.progressBar.Value = Math.Min(StackResolver.Operation100Percent, _resolver.PercentComplete);
185185
this.statusStrip.Refresh();
186186
Application.DoEvents();
187187
}

0 commit comments

Comments
 (0)