Wiring change detection to render process

This commit is contained in:
2025-06-19 20:03:02 -05:00
parent 5c19d82834
commit c599013af4
6 changed files with 40 additions and 15 deletions

View File

@@ -22,4 +22,6 @@ contextBridge.exposeInMainWorld('fs', {
closeFile: (path) => ipcRenderer.invoke("closeFile", path),
getPathForFile: (file) => webUtils.getPathForFile(file),
onLoadFiles: (callback) => ipcRenderer.on('load-files', (_event, paths) => callback(paths)),
onChangedFile: (callback) => ipcRenderer.on('file-changed', (_event, path) => callback(path)),
onDeletedFile: (callback) => ipcRenderer.on('file-deleted', (_event, path) => callback(path)),
});