()
| 3550 | folderElement.addEventListener('click', async (e) => { |
| 3551 | e.preventDefault(); |
| 3552 | e.stopPropagation(); |
| 3553 | |
| 3554 | const folderPath = folderElement.getAttribute('data-path'); |
| 3555 | if (folderPath) { |
| 3556 | try { |
| 3557 | // Open the folder in the file explorer |
| 3558 | await window.electron.openPath(folderPath); |
| 3559 | } catch (error) { |
| 3560 | console.error('Error opening folder:', error); |
| 3561 | } |
| 3562 | } |
| 3563 | }); |
| 3564 | }); |
| 3565 | } |
| 3566 | |
| 3567 | async function showModelDetails(filePath) { |
| 3568 | try { |
| 3569 | // Cancel any previous operation. Epoch retires deferred name writes from |
| 3570 | // the previous load before abort is cleared below. |
| 3571 | const detailsEpoch = bumpModelDetailsEpoch(); |
| 3572 | currentModelDetailsAbort = true; |
| 3573 | |
| 3574 | // Set the new current path |
| 3575 | currentModelDetailsPath = filePath; |
| 3576 | currentModelDetailsAbort = false; |
| 3577 | |
| 3578 | const modelNameAtStart = document.getElementById('model-name'); |
| 3579 | if (modelNameAtStart) modelNameAtStart.value = ''; |
| 3580 | scheduleModelNameCommit('', detailsEpoch); |
nothing calls this directly
no outgoing calls
no test coverage detected