From 30c32d4c2bd551595fbc68d29bd5fb6ba2cdd887 Mon Sep 17 00:00:00 2001 From: Thomas Zarebczan Date: Tue, 7 Aug 2018 09:33:06 -0400 Subject: [PATCH] Turn off timer after update downloads This might do the trick, needs to be tested. --- src/renderer/redux/actions/app.js | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/renderer/redux/actions/app.js b/src/renderer/redux/actions/app.js index cce997814..103ffe8d4 100644 --- a/src/renderer/redux/actions/app.js +++ b/src/renderer/redux/actions/app.js @@ -140,7 +140,9 @@ export function doDownloadUpgradeRequested() { } export function doAutoUpdate() { - return dispatch => { + return (dispatch, getState) => { + const state = getState(); + dispatch({ type: ACTIONS.AUTO_UPDATE_DOWNLOADED, }); @@ -150,6 +152,10 @@ export function doAutoUpdate() { id: MODALS.AUTO_UPDATE_DOWNLOADED, }) ); + + if (selectUpgradeTimer(state)) { + clearInterval(selectUpgradeTimer(state)); + } }; }