[#27: Implement Bitbucket backup download location] [Prefer 'ipcRenderer.once()']

This commit is contained in:
Scott E. Graves
2019-07-05 19:21:54 -05:00
parent e8b743ae0b
commit 7c54747a7a
3 changed files with 43 additions and 37 deletions

View File

@@ -109,7 +109,7 @@ class App extends IPCContainer {
handleDownloadRelease = () => {
const selectedVersion = this.getSelectedVersion();
const fileName = selectedVersion + '.zip';
this.props.downloadItem(fileName, Constants.INSTALL_TYPES.Release, this.props.LocationsLookup[selectedVersion].urls[0], this.onDownloadFileComplete);
this.props.downloadItem(fileName, Constants.INSTALL_TYPES.Release, this.props.LocationsLookup[selectedVersion].urls, this.onDownloadFileComplete);
};
handleDownloadUpgrade = () => {
@@ -118,7 +118,7 @@ class App extends IPCContainer {
(this.props.Platform === 'darwin') ?
'upgrade.dmg' :
'repertory-ui_' + this.props.UpgradeVersion + '_linux_x86_64.AppImage';
this.props.downloadItem(name, Constants.INSTALL_TYPES.Upgrade, this.props.UpgradeData.urls[0], this.onDownloadFileComplete);
this.props.downloadItem(name, Constants.INSTALL_TYPES.Upgrade, this.props.UpgradeData.urls, this.onDownloadFileComplete);
};
installDependency = result => {