1
0

Add new function to add folder by path

This commit is contained in:
2025-05-25 06:33:55 +02:00
parent f2efbb23fa
commit a3c0b5e5b0

View File

@@ -48,6 +48,8 @@ contextBridge.exposeInMainWorld('electronAPI', {
relocateFolder: (oldPath, newPath) => ipcRenderer.invoke('relocate-folder', oldPath, newPath),
pickFolder: () => ipcRenderer.invoke('pick-folder'),
repoHasCommit: (repoPath, commitHash) => ipcRenderer.invoke('repo-has-commit', repoPath, commitHash),
addFolderByPath: (folderPath) => ipcRenderer.invoke('add-folder-by-path', folderPath),
});
ipcRenderer.on('repo-updated', (_e, folder) => {