diff --git a/src/preload.ts b/src/preload.ts index 1ad071ad..8e073db3 100644 --- a/src/preload.ts +++ b/src/preload.ts @@ -140,7 +140,7 @@ const electronAPI: ElectronAPI = { return ipcRenderer.invoke(IPC_CHANNELS.RESUME_DOWNLOAD, url); }, deleteModel: (filename: string, path: string): Promise => { - return ipcRenderer.invoke(IPC_CHANNELS.DELETE_DOWNLOAD, { filename, path }); + return ipcRenderer.invoke(IPC_CHANNELS.DELETE_MODEL, { filename, path }); }, getAllDownloads: (): Promise => { return ipcRenderer.invoke(IPC_CHANNELS.GET_ALL_DOWNLOADS);