Description:
The "X of Y shown, Z included" counter in the Parts section does not update when individual part checkboxes are toggled. It only updates when using the "Select All" or "Deselect All" buttons.
Steps to reproduce:
- Load any model file
- Note the counter - e.g. "35 of 35 shown, 35 included"
- Uncheck one or more individual parts
- Counter still shows "35 included"
- Click "Deselect All" - counter correctly drops to "0 included"
Expected behavior:
The counter updates immediately whenever any checkbox is toggled, reflecting the current number of included parts.
Root cause:
The change event listener on individual checkboxes updates excludedParts but does not refresh the counter display. The counter is only recalculated inside renderPartList(), which is called by selectAll() but not on individual checkbox changes.
Fix:
A pull request with a fix is available: extracts the counter update into a dedicated updatePartCount() function and calls it from both renderPartList() and the individual checkbox change listener.
Description:
The "X of Y shown, Z included" counter in the Parts section does not update when individual part checkboxes are toggled. It only updates when using the "Select All" or "Deselect All" buttons.
Steps to reproduce:
Expected behavior:
The counter updates immediately whenever any checkbox is toggled, reflecting the current number of included parts.
Root cause:
The change event listener on individual checkboxes updates excludedParts but does not refresh the counter display. The counter is only recalculated inside renderPartList(), which is called by selectAll() but not on individual checkbox changes.
Fix:
A pull request with a fix is available: extracts the counter update into a dedicated updatePartCount() function and calls it from both renderPartList() and the individual checkbox change listener.