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:
@@ -314,6 +314,12 @@ namespace OpenNest.Forms
|
||||
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;
|
||||
|
||||
EnableCheck();
|
||||
|
||||
Reference in New Issue
Block a user