feat(ui): support Accept button in nesting callers

This commit is contained in:
2026-03-18 17:35:33 -04:00
parent b5af5a118d
commit 9a4f20ca00
2 changed files with 2 additions and 2 deletions

View File

@@ -930,7 +930,7 @@ namespace OpenNest.Controls
var parts = await Task.Run(() =>
engine.Fill(groupParts, workArea, progress, cts.Token));
if (parts.Count > 0 && !cts.IsCancellationRequested)
if (parts.Count > 0 && (!cts.IsCancellationRequested || progressForm.Accepted))
{
AcceptTemporaryParts();
sw.Stop();

View File

@@ -865,7 +865,7 @@ namespace OpenNest.Forms
activeForm.PlateView.ClearTemporaryParts();
if (nestParts.Count > 0 && !token.IsCancellationRequested)
if (nestParts.Count > 0 && (!token.IsCancellationRequested || progressForm.Accepted))
{
plate.Parts.AddRange(nestParts);
activeForm.PlateView.Invalidate();