Make video pause when you hit the "Upgrade Now" button on Mac/Win

This commit is contained in:
Alex Liebowitz 2018-01-17 07:10:45 -05:00
parent 863f7dc23b
commit 853bf2cfe7
2 changed files with 9 additions and 3 deletions

View file

@ -73,9 +73,9 @@ fi
# Build the app #
###################
if [ "$FULL_BUILD" == "true" ]; then
if $OSX; then
security unlock-keychain -p ${KEYCHAIN_PASSWORD} osx-build.keychain
fi
# if $OSX; then
# security unlock-keychain -p ${KEYCHAIN_PASSWORD} osx-build.keychain
# fi
yarn build

View file

@ -10,6 +10,8 @@ import { doAuthNavigate } from 'redux/actions/navigation';
import { doFetchDaemonSettings } from 'redux/actions/settings';
import { doAuthenticate } from 'redux/actions/user';
import { doBalanceSubscribe } from 'redux/actions/wallet';
import { doPause } from "redux/actions/media";
import {
selectCurrentModal,
selectIsUpgradeSkipped,
@ -76,6 +78,10 @@ export function doDownloadUpgradeRequested() {
return (dispatch, getState) => {
const state = getState();
// Pause video if needed
dispatch(doPause());
const autoUpdateDeclined = selectAutoUpdateDeclined(state);
if (['win32', 'darwin'].includes(process.platform)) { // electron-updater behavior