Add new function to add folder by path
This commit is contained in:
@@ -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) => {
|
||||
|
||||
Reference in New Issue
Block a user