diff --git a/src/main/index.js b/src/main/index.js index e4c3e1ffb..eb5d53b6a 100644 --- a/src/main/index.js +++ b/src/main/index.js @@ -21,6 +21,8 @@ const isDevelopment = process.env.NODE_ENV === 'development'; // For now, log info messages in production for easier debugging of built apps log.transports.file.level = 'info'; +autoUpdater.autoDownload = true; + // Misc constants const LATEST_RELEASE_API_URL = 'https://api.github.com/repos/lbryio/lbry-app/releases/latest'; diff --git a/src/renderer/modal/modalAutoUpdateDownloaded/index.js b/src/renderer/modal/modalAutoUpdateDownloaded/index.js index 921271126..740a2dca2 100644 --- a/src/renderer/modal/modalAutoUpdateDownloaded/index.js +++ b/src/renderer/modal/modalAutoUpdateDownloaded/index.js @@ -1,5 +1,10 @@ import React from "react"; import { connect } from "react-redux"; +import { doCloseModal } from "redux/actions/app"; import ModalAutoUpdateDownloaded from "./view"; -export default connect(null, null)(ModalAutoUpdateDownloaded); +const perform = dispatch => ({ + closeModal: () => dispatch(doCloseModal()), +}); + +export default connect(null, perform)(ModalAutoUpdateDownloaded); diff --git a/src/renderer/modal/modalAutoUpdateDownloaded/view.jsx b/src/renderer/modal/modalAutoUpdateDownloaded/view.jsx index 2d136071a..39971118a 100644 --- a/src/renderer/modal/modalAutoUpdateDownloaded/view.jsx +++ b/src/renderer/modal/modalAutoUpdateDownloaded/view.jsx @@ -7,14 +7,19 @@ const { ipcRenderer } = require("electron"); class ModalAutoUpdateDownloaded extends React.PureComponent { render() { + const { closeModal } = this.props; + return ( { ipcRenderer.send("autoUpdate"); }} + onAborted={closeModal} >

{__("LBRY Leveled Up")}