Skip to content

Commit

Permalink
Fix DownloadManager.deleteModel IPC symbol (#140)
Browse files Browse the repository at this point in the history
  • Loading branch information
huchenlei authored Oct 30, 2024
1 parent 391b0f6 commit 3cf51e0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/preload.ts
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ const electronAPI: ElectronAPI = {
return ipcRenderer.invoke(IPC_CHANNELS.RESUME_DOWNLOAD, url);
},
deleteModel: (filename: string, path: string): Promise<boolean> => {
return ipcRenderer.invoke(IPC_CHANNELS.DELETE_DOWNLOAD, { filename, path });
return ipcRenderer.invoke(IPC_CHANNELS.DELETE_MODEL, { filename, path });
},
getAllDownloads: (): Promise<DownloadItem[]> => {
return ipcRenderer.invoke(IPC_CHANNELS.GET_ALL_DOWNLOADS);
Expand Down

0 comments on commit 3cf51e0

Please sign in to comment.