()
| 10843 | window.electron.on('manage-thumbnails-request', async (filePath) => { |
| 10844 | try { |
| 10845 | await showManageThumbnailsModal(filePath); |
| 10846 | } catch (error) { |
| 10847 | console.error('Error showing manage thumbnails modal:', error); |
| 10848 | alert('Error opening thumbnail manager: ' + error.message); |
| 10849 | } |
| 10850 | }); |
| 10851 | |
| 10852 | // Handle client-side command execution (for server mode) |
| 10853 | window.electron.on('execute-client-command', async (commandData) => { |
| 10854 | try { |
| 10855 | if (!commandData || !commandData.type) { |
| 10856 | console.error('Invalid command data:', commandData); |
| 10857 | return; |
| 10858 | } |
| 10859 | |
| 10860 | const { type, filePath, slicerName, slicerPath, isZipEntry, zipPath, entryPath } = commandData; |
| 10861 |
no test coverage detected