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
13313 try {
13314 // 0. Non-previewable types: use typed placeholder (file type label)
13315 if (!isRenderable3dExtension(fileExt) && fileExt !== 'svg' && fileExt !== 'lys' && !isImageOnlyPreviewExt(fileExt)) {
13316 thumbnail = generateTypedPlaceholder(fileExt);
13317 await window.electron.saveThumbnail(model.filePath, thumbnail);
13318 if (!skipHash && (!model.hash || model.hash === '')) {
13319 try { await window.electron.calculateFileHash(model.filePath); } catch (e) { /* ignore */ }
13320 }
13321 return;
13322 }
13323
13324 // 0b. SVG: try to load as image data URL; on failure use typed placeholder
13325 if (fileExt === 'svg') {
13326 try {

Callers

nothing calls this directly

Calls 1

isInSelectedModelsFunction · 0.85

Tested by

no test coverage detected