(filePath)
| 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 |
no outgoing calls
no test coverage detected