This commit is contained in:
Daniel Shleifman
2021-06-03 15:18:16 +03:00

View File

@@ -79,6 +79,7 @@ export default function SettingsDialog() {
PeersListenPort,
UseDisk,
TorrentsSavePath,
RemoveCacheOnDrop,
} = settings
return (
@@ -235,6 +236,13 @@ export default function SettingsDialog() {
label='Use disk'
/>
<br />
<FormControlLabel
control={<Switch checked={RemoveCacheOnDrop} onChange={inputForm} id='RemoveCacheOnDrop' color='primary' />}
label='Remove cache from disk on drop torrent'
/>
<br/>
<small>If disabled, remove cache on delete torrent</small>
<br />
<TextField
onChange={inputForm}
margin='dense'