()
| 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 { |
nothing calls this directly
no test coverage detected