Fix download

This commit is contained in:
Scott E. Graves
2019-06-07 10:30:11 -05:00
parent 31585fc912
commit d86f1c82a1
2 changed files with 3 additions and 2 deletions

View File

@@ -186,6 +186,7 @@ class App extends IPCContainer {
}
this.props.setReleaseUpgradeAvailable(upgradeAvailable);
this.props.setAllowDownload(true);
this.setState({
MissingDependencies: arg.data.Dependencies,
InstalledVersion: installedVersion,

View File

@@ -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));
};