mirror of
https://github.com/ajisaacs/OpenNest.git
synced 2026-10-01 22:28:49 -04:00
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:
@@ -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();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user