Adding toggle to prevent downloads from starting when cookies are locked.

This commit is contained in:
Roland 2026-03-14 12:08:23 -06:00
parent 9b3a03012e
commit ae7ab1981f
No known key found for this signature in database
GPG key ID: 1BA620CE6C9A4680
8 changed files with 36 additions and 3 deletions

View file

@ -452,6 +452,7 @@ export function SettingsPage() {
// Only these settings can be changed on the SettingsPage.
archive_destination: settings.archive_destination,
download_on_startup: settings.download_on_startup,
require_cookies_unlocked: settings.require_cookies_unlocked,
download_timeout: settings.download_timeout,
download_wait: settings.download_wait,
download_window_start: settings.download_window_start || '',
@ -672,6 +673,19 @@ export function SettingsPage() {
/>
</div>
<div style={{margin: '0.5em'}}>
<Toggle
label={<>
Do not download while cookies are locked
<InfoPopup
content='When enabled, downloads will wait until cookies are unlocked. If no cookies are configured, downloads proceed normally.'/>
</>}
disabled={disabled || state.require_cookies_unlocked === null}
checked={state.require_cookies_unlocked === true}
onChange={checked => handleInputChange(null, 'require_cookies_unlocked', checked)}
/>
</div>
<Form.Group inline>
<Form.Input
label={<>