fix: corregge drag & drop e riconoscimento estensioni CAD versionate

This commit is contained in:
2026-03-05 16:46:03 +01:00
parent 8edc2673b3
commit 5b65a9bd04
3 changed files with 21 additions and 8 deletions

View File

@@ -1,9 +1,10 @@
const { contextBridge, ipcRenderer } = require('electron');
const { contextBridge, ipcRenderer, webUtils } = require('electron');
contextBridge.exposeInMainWorld('api', {
selectFolder: () => ipcRenderer.invoke('select-folder'),
selectZip: () => ipcRenderer.invoke('select-zip'),
processDroppedPath: (path) => ipcRenderer.invoke('process-dropped-path', { path }),
getPathForDroppedFile: (file) => webUtils.getPathForFile(file),
getDestination: () => ipcRenderer.invoke('get-destination'),
selectDestinationFolder: () => ipcRenderer.invoke('select-destination-folder'),
updateDestination: (destination) => ipcRenderer.invoke('update-destination', { destination }),