mirror of
https://github.com/ajisaacs/OpenNest.git
synced 2026-11-12 03:21:09 -05:00
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:
1 parent
98c4c88fc3
commit
fde285484a
1 file changed
+6
@@ -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