fix(ui): show live per-angle/per-candidate detail during nesting
Don't overwrite the Detail label with phase-level reports — let the per-angle and per-candidate descriptions from the parallel loops remain visible. Only clear the label on completion. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -866,7 +866,7 @@ namespace OpenNest
|
|||||||
BestDensity = score.Density,
|
BestDensity = score.Density,
|
||||||
UsableRemnantArea = workArea.Area() - totalPartArea,
|
UsableRemnantArea = workArea.Area() - totalPartArea,
|
||||||
BestParts = clonedParts,
|
BestParts = clonedParts,
|
||||||
Description = $"{phase}: {score.Count} parts, {score.Density:P1}"
|
Description = null
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -38,9 +38,8 @@ namespace OpenNest.Forms
|
|||||||
densityValue.Text = progress.BestDensity.ToString("P1");
|
densityValue.Text = progress.BestDensity.ToString("P1");
|
||||||
remnantValue.Text = $"{progress.UsableRemnantArea:F1} sq in";
|
remnantValue.Text = $"{progress.UsableRemnantArea:F1} sq in";
|
||||||
|
|
||||||
descriptionValue.Text = !string.IsNullOrEmpty(progress.Description)
|
if (!string.IsNullOrEmpty(progress.Description))
|
||||||
? progress.Description
|
descriptionValue.Text = progress.Description;
|
||||||
: "\u2014";
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public void ShowCompleted()
|
public void ShowCompleted()
|
||||||
@@ -53,6 +52,7 @@ namespace OpenNest.Forms
|
|||||||
UpdateElapsed();
|
UpdateElapsed();
|
||||||
|
|
||||||
phaseValue.Text = "Done";
|
phaseValue.Text = "Done";
|
||||||
|
descriptionValue.Text = "\u2014";
|
||||||
stopButton.Text = "Close";
|
stopButton.Text = "Close";
|
||||||
stopButton.Enabled = true;
|
stopButton.Enabled = true;
|
||||||
stopButton.Click -= StopButton_Click;
|
stopButton.Click -= StopButton_Click;
|
||||||
|
|||||||
Reference in New Issue
Block a user