MCPcopy Create free account
hub / github.com/TechJeeper/Printventory / ensureListViewColumnState

Function ensureListViewColumnState

renderer.js:14669–14674  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

14667function syncDOMSelectionWithSelectedModels() {
14668 document.querySelectorAll('.file-item').forEach(item => {
14669 const itemPath = item.getAttribute('data-filepath') || item.dataset.filepath;
14670 if (itemPath && isInSelectedModels(itemPath)) {
14671 item.classList.add('selected');
14672 } else {
14673 item.classList.remove('selected');
14674 }
14675 });
14676}
14677

Calls 1

Tested by

no test coverage detected