diff --git a/ui/component/settingSystem/view.jsx b/ui/component/settingSystem/view.jsx index 1824e3ddf..c595cc1b3 100644 --- a/ui/component/settingSystem/view.jsx +++ b/ui/component/settingSystem/view.jsx @@ -122,6 +122,18 @@ export default function SettingSystem(props: Props) { isBodyList body={ <> + {/* @if TARGET='app' */} + + { + setDaemonSetting('download_dir', newDirectory.path); + }} + /> + + {/* @endif */} + {/* @if TARGET='app' */} ({ const perform = (dispatch) => ({ setDaemonSetting: (key, value) => dispatch(doSetDaemonSetting(key, value)), - clearDaemonSetting: (key) => dispatch(doClearDaemonSetting(key)), toggle3PAnalytics: (allow) => dispatch(doToggle3PAnalytics(allow)), enterSettings: () => dispatch(doEnterSettingsPage()), exitSettings: () => dispatch(doExitSettingsPage()), diff --git a/ui/page/settings/view.jsx b/ui/page/settings/view.jsx index b2a45224b..6c82f05ed 100644 --- a/ui/page/settings/view.jsx +++ b/ui/page/settings/view.jsx @@ -9,7 +9,6 @@ import SettingAccount from 'component/settingAccount'; import SettingAppearance from 'component/settingAppearance'; import SettingContent from 'component/settingContent'; import SettingSystem from 'component/settingSystem'; -import FileSelector from 'component/common/file-selector'; import Card from 'component/common/card'; import classnames from 'classnames'; import Yrbl from 'component/yrbl'; @@ -28,7 +27,6 @@ type DaemonSettings = { type Props = { setDaemonSetting: (string, ?SetDaemonSettingArg) => void, - clearDaemonSetting: (string) => void, toggle3PAnalytics: (boolean) => void, daemonSettings: DaemonSettings, allowAnalytics: boolean, @@ -55,10 +53,6 @@ class SettingsPage extends React.PureComponent { this.props.setDaemonSetting(name, value); } - clearDaemonSetting(name: string): void { - this.props.clearDaemonSetting(name); - } - render() { const { daemonSettings, @@ -109,24 +103,6 @@ class SettingsPage extends React.PureComponent { ) : ( - {/* @if TARGET='app' */} - - { - setDaemonSetting('download_dir', newDirectory.path); - }} - /> - {__('LBRY downloads will be saved here.')} - - } - /> - {/* @endif */} - {/* @if TARGET='app' */}
{__('LBRY downloads will be saved here.')}