diff --git a/src/App.js b/src/App.js index baf8e30..bb89560 100644 --- a/src/App.js +++ b/src/App.js @@ -186,6 +186,7 @@ class App extends IPCContainer { } this.props.setReleaseUpgradeAvailable(upgradeAvailable); this.props.setAllowDownload(true); + this.setState({ MissingDependencies: arg.data.Dependencies, InstalledVersion: installedVersion, diff --git a/src/redux/actions/download_actions.js b/src/redux/actions/download_actions.js index 0e03e64..f774a22 100644 --- a/src/redux/actions/download_actions.js +++ b/src/redux/actions/download_actions.js @@ -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)); };