Make video pause when you hit the "Upgrade Now" button on Mac/Win
This commit is contained in:
parent
863f7dc23b
commit
853bf2cfe7
2 changed files with 9 additions and 3 deletions
|
@ -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
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue