Fix download
This commit is contained in:
@@ -32,8 +32,8 @@ export const downloadItem = (name, type, url, completedCallback) => {
|
||||
};
|
||||
|
||||
const downloadFileComplete = (_, arg) => {
|
||||
this.ipcRenderer.removeListener(Constants.IPC_Download_File_Progress, downloadFileProgress);
|
||||
this.ipcRenderer.removeListener(Constants.IPC_Download_File_Complete, downloadFileComplete);
|
||||
ipcRenderer.removeListener(Constants.IPC_Download_File_Progress, downloadFileProgress);
|
||||
ipcRenderer.removeListener(Constants.IPC_Download_File_Complete, downloadFileComplete);
|
||||
completedCallback(name, type, url, arg.data);
|
||||
dispatch(setDownloadEnd(arg.data));
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user