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.
This commit is contained in:
aj
2026-09-30 23:16:07 -04:00
parent 7ce53008f1
commit 7a52058b0f
+6
View File
@@ -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();
}