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

Function extract3MFThumbnail

renderer.js:4581–4596  ·  view source on GitHub ↗
(filePath)

Source from the content-addressed store, hash-verified

4579
4580 // Delete button handler
4581 deleteButton.addEventListener('click', async (e) => {
4582 e.stopPropagation();
4583
4584 // Confirm deletion
4585 if (!confirm(`Are you sure you want to delete this thumbnail?`)) {
4586 return;
4587 }
4588
4589 try {
4590 await window.electron.deleteThumbnail(filePath, index);
4591
4592 // Refresh the modal to show updated thumbnails
4593 await showManageThumbnailsModal(filePath);
4594 } catch (error) {
4595 console.error('Error deleting thumbnail:', error);
4596 alert('Error deleting thumbnail: ' + error.message);
4597 }
4598 });
4599

Callers 2

processModelFunction · 0.85
generateThumbnailFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected