From d3ed0689114333c266d207ccd91d5d618e275767 Mon Sep 17 00:00:00 2001 From: Franco Montenegro Date: Tue, 28 Jun 2022 20:33:49 -0300 Subject: [PATCH] Small fixes in updater. --- electron/index.js | 4 ++++ ui/component/app/index.js | 5 ++--- ui/modal/modalAutoUpdateDownloaded/view.jsx | 2 +- 3 files changed, 7 insertions(+), 4 deletions(-) diff --git a/electron/index.js b/electron/index.js index fda80eac3..c7f783137 100644 --- a/electron/index.js +++ b/electron/index.js @@ -433,6 +433,10 @@ autoUpdater.on('update-downloaded', () => { } }); +autoUpdater.on('update-available', () => { + updateState = UPDATE_STATE_UPDATES_FOUND; +}); + autoUpdater.on('update-not-available', () => { updateState = UPDATE_STATE_NO_UPDATES_FOUND; }); diff --git a/ui/component/app/index.js b/ui/component/app/index.js index 39bc71e01..4726fe72c 100644 --- a/ui/component/app/index.js +++ b/ui/component/app/index.js @@ -7,7 +7,6 @@ import { selectUnclaimedRewards } from 'redux/selectors/rewards'; import { doFetchChannelListMine, doFetchCollectionListMine, doResolveUris } from 'redux/actions/claims'; import { selectMyChannelUrls, selectMyChannelClaimIds } from 'redux/selectors/claims'; import * as SETTINGS from 'constants/settings'; -import * as MODALS from 'constants/modal_types'; import { selectSubscriptions } from 'redux/selectors/subscriptions'; import { makeSelectClientSetting, @@ -25,7 +24,7 @@ import { import { doGetWalletSyncPreference, doSetLanguage } from 'redux/actions/settings'; import { doSyncLoop } from 'redux/actions/sync'; import { - doOpenModal, + doDownloadUpgradeRequested, doSignIn, doGetAndPopulatePreferences, doSetActiveChannel, @@ -61,7 +60,7 @@ const perform = (dispatch) => ({ fetchCollectionListMine: () => dispatch(doFetchCollectionListMine()), setLanguage: (language) => dispatch(doSetLanguage(language)), signIn: () => dispatch(doSignIn()), - requestDownloadUpgrade: () => dispatch(doOpenModal(MODALS.UPGRADE)), + requestDownloadUpgrade: () => dispatch(doDownloadUpgradeRequested()), updatePreferences: () => dispatch(doGetAndPopulatePreferences()), getWalletSyncPref: () => dispatch(doGetWalletSyncPreference()), syncLoop: (noInterval) => dispatch(doSyncLoop(noInterval)), diff --git a/ui/modal/modalAutoUpdateDownloaded/view.jsx b/ui/modal/modalAutoUpdateDownloaded/view.jsx index 7110cfb94..ed03fe5b3 100644 --- a/ui/modal/modalAutoUpdateDownloaded/view.jsx +++ b/ui/modal/modalAutoUpdateDownloaded/view.jsx @@ -40,7 +40,7 @@ const ModalAutoUpdateDownloaded = (props: Props) => { onAborted={handleAbort} > - {errorWhileUpdating &&

__('There was an error while updating. Please try again.')

} + {errorWhileUpdating &&

{__('There was an error while updating. Please try again.')}

} ); };