Preferences update
Renamed “Downloads” section to “Folders”; watch folder preference moved under “Folders”; updated texts for watch folder preference.
This commit is contained in:
@@ -114,7 +114,7 @@ class PreferencesPage extends React.Component {
|
|||||||
<Checkbox
|
<Checkbox
|
||||||
className='control'
|
className='control'
|
||||||
checked={this.props.state.unsaved.prefs.autoAddTorrents}
|
checked={this.props.state.unsaved.prefs.autoAddTorrents}
|
||||||
label={'Enable'}
|
label={'Watch for new .torrent files and add them immediately'}
|
||||||
onCheck={(e, value) => { this.handleAutoAddTorrentsChange(e, value) }}
|
onCheck={(e, value) => { this.handleAutoAddTorrentsChange(e, value) }}
|
||||||
/>
|
/>
|
||||||
</Preference>
|
</Preference>
|
||||||
@@ -142,20 +142,16 @@ class PreferencesPage extends React.Component {
|
|||||||
torrentsFolderPathSelector () {
|
torrentsFolderPathSelector () {
|
||||||
const torrentsFolderPath = this.props.state.unsaved.prefs.torrentsFolderPath
|
const torrentsFolderPath = this.props.state.unsaved.prefs.torrentsFolderPath
|
||||||
|
|
||||||
const value = torrentsFolderPath || 'Path to be watched.'
|
|
||||||
const description = 'Torrent files saved to this folder will be automatically added.'
|
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<Preference>
|
<Preference>
|
||||||
<p>{description}</p>
|
|
||||||
<PathSelector
|
<PathSelector
|
||||||
dialog={{
|
dialog={{
|
||||||
title: 'Select torrents folder path',
|
title: 'Select folder to watch for new torrents',
|
||||||
properties: [ 'openDirectory' ]
|
properties: [ 'openDirectory' ]
|
||||||
}}
|
}}
|
||||||
displayValue={value}
|
displayValue={torrentsFolderPath || ''}
|
||||||
onChange={this.handletorrentsFolderPathChange}
|
onChange={this.handletorrentsFolderPathChange}
|
||||||
title='Torrents folder'
|
title='Folder to watch'
|
||||||
value={torrentsFolderPath ? path.dirname(torrentsFolderPath) : null} />
|
value={torrentsFolderPath ? path.dirname(torrentsFolderPath) : null} />
|
||||||
</Preference>
|
</Preference>
|
||||||
)
|
)
|
||||||
@@ -220,8 +216,10 @@ class PreferencesPage extends React.Component {
|
|||||||
}
|
}
|
||||||
return (
|
return (
|
||||||
<div style={style}>
|
<div style={style}>
|
||||||
<PreferencesSection title='Downloads'>
|
<PreferencesSection title='Folders'>
|
||||||
{this.downloadPathSelector()}
|
{this.downloadPathSelector()}
|
||||||
|
{this.autoAddTorrentsCheckbox()}
|
||||||
|
{this.torrentsFolderPathSelector()}
|
||||||
</PreferencesSection>
|
</PreferencesSection>
|
||||||
<PreferencesSection title='Playback'>
|
<PreferencesSection title='Playback'>
|
||||||
{this.openExternalPlayerCheckbox()}
|
{this.openExternalPlayerCheckbox()}
|
||||||
@@ -231,10 +229,6 @@ class PreferencesPage extends React.Component {
|
|||||||
<PreferencesSection title='Default torrent app'>
|
<PreferencesSection title='Default torrent app'>
|
||||||
{this.setDefaultAppButton()}
|
{this.setDefaultAppButton()}
|
||||||
</PreferencesSection>
|
</PreferencesSection>
|
||||||
<PreferencesSection title='Auto add torrents'>
|
|
||||||
{this.autoAddTorrentsCheckbox()}
|
|
||||||
{this.torrentsFolderPathSelector()}
|
|
||||||
</PreferencesSection>
|
|
||||||
{this.setStartupSection()}
|
{this.setStartupSection()}
|
||||||
</div>
|
</div>
|
||||||
)
|
)
|
||||||
|
|||||||
Reference in New Issue
Block a user