mirror of
https://github.com/LBRYFoundation/lbry-desktop.git
synced 2025-09-12 21:39:47 +00:00
fix(settings): Clear support state when clearing cache
This commit is contained in:
parent
b74b69dc57
commit
fbf184a238
1 changed files with 2 additions and 0 deletions
|
@ -19,6 +19,7 @@ import {
|
||||||
doClearPublish,
|
doClearPublish,
|
||||||
doPreferenceGet,
|
doPreferenceGet,
|
||||||
doToast,
|
doToast,
|
||||||
|
doClearSupport,
|
||||||
} from 'lbry-redux';
|
} from 'lbry-redux';
|
||||||
import Native from 'native';
|
import Native from 'native';
|
||||||
import { doFetchDaemonSettings } from 'redux/actions/settings';
|
import { doFetchDaemonSettings } from 'redux/actions/settings';
|
||||||
|
@ -339,6 +340,7 @@ export function doClearCache() {
|
||||||
// const reducersToClear = whiteListedReducers.filter(reducerKey => reducerKey !== 'tags');
|
// const reducersToClear = whiteListedReducers.filter(reducerKey => reducerKey !== 'tags');
|
||||||
// window.cacheStore.purge(reducersToClear);
|
// window.cacheStore.purge(reducersToClear);
|
||||||
window.localStorage.clear();
|
window.localStorage.clear();
|
||||||
|
dispatch(doClearSupport());
|
||||||
return dispatch(doClearPublish());
|
return dispatch(doClearPublish());
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue