Turn off timer after update downloads
This might do the trick, needs to be tested.
This commit is contained in:
parent
7119a43742
commit
30c32d4c2b
1 changed files with 7 additions and 1 deletions
|
@ -140,7 +140,9 @@ export function doDownloadUpgradeRequested() {
|
||||||
}
|
}
|
||||||
|
|
||||||
export function doAutoUpdate() {
|
export function doAutoUpdate() {
|
||||||
return dispatch => {
|
return (dispatch, getState) => {
|
||||||
|
const state = getState();
|
||||||
|
|
||||||
dispatch({
|
dispatch({
|
||||||
type: ACTIONS.AUTO_UPDATE_DOWNLOADED,
|
type: ACTIONS.AUTO_UPDATE_DOWNLOADED,
|
||||||
});
|
});
|
||||||
|
@ -150,6 +152,10 @@ export function doAutoUpdate() {
|
||||||
id: MODALS.AUTO_UPDATE_DOWNLOADED,
|
id: MODALS.AUTO_UPDATE_DOWNLOADED,
|
||||||
})
|
})
|
||||||
);
|
);
|
||||||
|
|
||||||
|
if (selectUpgradeTimer(state)) {
|
||||||
|
clearInterval(selectUpgradeTimer(state));
|
||||||
|
}
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue