From dfd42b8e96c4eef6b469839ea0e789184a2b0cf7 Mon Sep 17 00:00:00 2001 From: Thomas Zarebczan Date: Tue, 19 Jun 2018 20:50:01 -0400 Subject: [PATCH] Autoupgrade fixes Fixes modal when clicking "upgrade app" from the top right menu. Fixes double modal on autoupdate, issue https://github.com/lbryio/lbry-app/issues/1613 --- src/renderer/index.js | 4 ---- src/renderer/modal/modalAutoUpdateConfirm/view.jsx | 1 + yarn.lock | 4 ++-- 3 files changed, 3 insertions(+), 6 deletions(-) diff --git a/src/renderer/index.js b/src/renderer/index.js index 974df0384..0458f7564 100644 --- a/src/renderer/index.js +++ b/src/renderer/index.js @@ -113,10 +113,6 @@ document.addEventListener('click', event => { }); const init = () => { - autoUpdater.on('update-downloaded', () => { - app.store.dispatch(doAutoUpdate()); - }); - autoUpdater.on('error', error => { // eslint-disable-next-line no-console console.error(error.message); diff --git a/src/renderer/modal/modalAutoUpdateConfirm/view.jsx b/src/renderer/modal/modalAutoUpdateConfirm/view.jsx index ac2e8d420..d72a61864 100644 --- a/src/renderer/modal/modalAutoUpdateConfirm/view.jsx +++ b/src/renderer/modal/modalAutoUpdateConfirm/view.jsx @@ -30,6 +30,7 @@ class ModalAutoUpdateConfirm extends React.PureComponent {

{__('Want to know what has changed?')} See the{' '}