From 7a52058b0f377866ce153c467789331c73c993cf Mon Sep 17 00:00:00 2001 From: AJ Isaacs Date: Wed, 30 Sep 2026 23:16:07 -0400 Subject: [PATCH] fix(ui): refresh plate list when parts are added or removed The plates ListView showed stale part-count and utilization columns after interactive placement, clone, or fill, because only the drawing list was refreshed on the debounced PartAdded/PartRemoved timer. Also refresh the plate rows when a drawing is deleted from every plate. --- OpenNest/Forms/EditNestForm.cs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/OpenNest/Forms/EditNestForm.cs b/OpenNest/Forms/EditNestForm.cs index cbe84d4..3722276 100644 --- a/OpenNest/Forms/EditNestForm.cs +++ b/OpenNest/Forms/EditNestForm.cs @@ -1200,6 +1200,11 @@ namespace OpenNest.Forms } drawingListBox1.Invalidate(); + + // Parts were added or removed: rebuild the plate rows so the + // part-count and utilization columns stay current. The debounce + // timer collapses a fill's many per-part events into one refresh. + UpdatePlateList(); }) ); } @@ -1254,6 +1259,7 @@ namespace OpenNest.Forms Nest.Drawings.Remove(drawing); UpdateDrawingList(); + UpdatePlateList(); PlateView.Invalidate(); }