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 #
|
# Build the app #
|
||||||
###################
|
###################
|
||||||
if [ "$FULL_BUILD" == "true" ]; then
|
if [ "$FULL_BUILD" == "true" ]; then
|
||||||
if $OSX; then
|
# if $OSX; then
|
||||||
security unlock-keychain -p ${KEYCHAIN_PASSWORD} osx-build.keychain
|
# security unlock-keychain -p ${KEYCHAIN_PASSWORD} osx-build.keychain
|
||||||
fi
|
# fi
|
||||||
|
|
||||||
yarn build
|
yarn build
|
||||||
|
|
||||||
|
|
|
@ -10,6 +10,8 @@ import { doAuthNavigate } from 'redux/actions/navigation';
|
||||||
import { doFetchDaemonSettings } from 'redux/actions/settings';
|
import { doFetchDaemonSettings } from 'redux/actions/settings';
|
||||||
import { doAuthenticate } from 'redux/actions/user';
|
import { doAuthenticate } from 'redux/actions/user';
|
||||||
import { doBalanceSubscribe } from 'redux/actions/wallet';
|
import { doBalanceSubscribe } from 'redux/actions/wallet';
|
||||||
|
import { doPause } from "redux/actions/media";
|
||||||
|
|
||||||
import {
|
import {
|
||||||
selectCurrentModal,
|
selectCurrentModal,
|
||||||
selectIsUpgradeSkipped,
|
selectIsUpgradeSkipped,
|
||||||
|
@ -76,6 +78,10 @@ export function doDownloadUpgradeRequested() {
|
||||||
|
|
||||||
return (dispatch, getState) => {
|
return (dispatch, getState) => {
|
||||||
const state = getState();
|
const state = getState();
|
||||||
|
|
||||||
|
// Pause video if needed
|
||||||
|
dispatch(doPause());
|
||||||
|
|
||||||
const autoUpdateDeclined = selectAutoUpdateDeclined(state);
|
const autoUpdateDeclined = selectAutoUpdateDeclined(state);
|
||||||
|
|
||||||
if (['win32', 'darwin'].includes(process.platform)) { // electron-updater behavior
|
if (['win32', 'darwin'].includes(process.platform)) { // electron-updater behavior
|
||||||
|
|
Loading…
Add table
Reference in a new issue