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

Function syncDOMSelectionWithSelectedModels

renderer.js:13314–13323  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

13312 const normalized = normalizePathForComparison(filePath);
13313 // Find the original path format from selectedModels or DOM to maintain consistency
13314 let originalPath = filePath;
13315 for (const path of selectedModels) {
13316 if (normalizePathForComparison(path) === normalized) {
13317 originalPath = path; // Use existing format
13318 break;
13319 }
13320 }
13321 selectedModels.add(originalPath);
13322 return originalPath;
13323}
13324
13325function removeFromSelectedModels(filePath) {
13326 const normalized = normalizePathForComparison(filePath);

Callers

nothing calls this directly

Calls 1

isInSelectedModelsFunction · 0.85

Tested by

no test coverage detected