mirror of
https://github.com/rommapp/romm.git
synced 2026-11-30 02:22:44 +01:00
The `ref<Set<number>>` plus clone-and-swap plus all/some computeds had been written three times: the Files tab, the Firmware tab, and the Save data tab this branch added. `useIdSelection` now owns it, and all three call it. It keeps the stale-id defence the Files tab had and the other two lacked: the count comes from intersecting with the live list, so an id left behind by a delete elsewhere cannot inflate it. The set is replaced rather than mutated, since Vue does not track `Set` writes. The toolbar's count moves onto RCheckbox's own `label`, which is what associates the two. Wrapping the checkbox in a bare `<label>` failed vuejs-accessibility/label-has-for in CI, because the rule cannot see that the component renders an input. The Firmware tab already did it this way. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_016bZ7R3xC73MZu1vTNuatPK