fix(ui): cancel nesting when MDI child form is closed

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-03-13 08:33:43 -04:00
parent 98c4c88fc3
commit fde285484a
+6
View File
@@ -314,6 +314,12 @@ namespace OpenNest.Forms
activeForm.PlateView.StatusChanged -= PlateView_StatusChanged; activeForm.PlateView.StatusChanged -= PlateView_StatusChanged;
} }
// If nesting is in progress and the active form changed, cancel nesting
if (nestingInProgress && nestingCts != null)
{
nestingCts.Cancel();
}
activeForm = ActiveMdiChild as EditNestForm; activeForm = ActiveMdiChild as EditNestForm;
EnableCheck(); EnableCheck();