From ec47f8d0cb0456984e59e3489482ddd9ee7d172b Mon Sep 17 00:00:00 2001 From: jessop Date: Fri, 21 Feb 2020 15:52:09 -0500 Subject: [PATCH] sync bug --- ui/redux/actions/app.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/ui/redux/actions/app.js b/ui/redux/actions/app.js index 061e78186..5ac5c0d40 100644 --- a/ui/redux/actions/app.js +++ b/ui/redux/actions/app.js @@ -34,6 +34,7 @@ import { selectModal, selectAllowAnalytics, } from 'redux/selectors/app'; +import { selectDaemonSettings } from 'redux/selectors/settings'; import { doAuthenticate, doGetSync } from 'lbryinc'; import { lbrySettings as config, version as appVersion } from 'package.json'; import analytics from 'analytics'; @@ -477,7 +478,7 @@ export function doGetAndPopulatePreferences() { return (dispatch, getState) => { function successCb(savedPreferences) { const state = getState(); - const { daemonSettings } = state; + const daemonSettings = selectDaemonSettings(state); if (savedPreferences !== null) { dispatch(doPopulateSharedUserState(savedPreferences)); @@ -485,7 +486,7 @@ export function doGetAndPopulatePreferences() { const { settings, sharing_3P: sharing3P } = savedPreferences.value; Object.entries(settings).forEach(([key, val]) => { if (daemonSettings[key] !== val) { - dispatch(doSetDaemonSetting(key, val, false)); + dispatch(doSetDaemonSetting(key, val, true)); } }); if (sharing3P !== undefined) { -- 2.45.2