Wired external change detection and update

This commit is contained in:
2025-06-21 18:17:01 -05:00
parent d354a940c4
commit dae0cd9516
3 changed files with 16 additions and 10 deletions

View File

@@ -24,6 +24,6 @@ contextBridge.exposeInMainWorld('fs', {
onLoadFiles: (callback) => ipcRenderer.on('load-files', (_event, paths) => callback(paths)),
onUpdateFilePath: (callback) => ipcRenderer.on('update-file-path', (_event, paths) => callback(paths)),
onSavedFile: (callback) => ipcRenderer.on('file-saved', (_event, path) => callback(path)),
onChangedFile: (callback) => ipcRenderer.on('file-changed', (_event, path) => callback(path)),
onChangedFile: (callback) => ipcRenderer.on('file-changed', (_event, path, data) => callback(path, data)),
onDeletedFile: (callback) => ipcRenderer.on('file-deleted', (_event, path) => callback(path)),
});