mirror of
https://github.com/Ernous/TorrServerJellyfin.git
synced 2025-12-19 21:46:11 +05:00
add remove cache on drop sets
This commit is contained in:
@@ -79,6 +79,7 @@ export default function SettingsDialog() {
|
|||||||
PeersListenPort,
|
PeersListenPort,
|
||||||
UseDisk,
|
UseDisk,
|
||||||
TorrentsSavePath,
|
TorrentsSavePath,
|
||||||
|
RemoveCacheOnDrop,
|
||||||
} = settings
|
} = settings
|
||||||
|
|
||||||
return (
|
return (
|
||||||
@@ -235,6 +236,13 @@ export default function SettingsDialog() {
|
|||||||
label='Use disk'
|
label='Use disk'
|
||||||
/>
|
/>
|
||||||
<br />
|
<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
|
<TextField
|
||||||
onChange={inputForm}
|
onChange={inputForm}
|
||||||
margin='dense'
|
margin='dense'
|
||||||
|
|||||||
Reference in New Issue
Block a user