fix(settings): sync portable mode toggle

This commit is contained in:
Will Miao
2025-11-16 17:36:52 +08:00
parent 645b7c247d
commit 354cf03bbc
16 changed files with 269 additions and 9 deletions

View File

@@ -38,6 +38,27 @@
</div>
</div>
<div class="settings-section">
<h3>{{ t('settings.sections.storageLocation') }}</h3>
<div class="setting-item">
<div class="setting-row">
<div class="setting-info">
<label for="usePortableSettings">{{ t('settings.storage.locationLabel') }}</label>
</div>
<div class="setting-control">
<label class="toggle-switch">
<input type="checkbox" id="usePortableSettings" {% if settings.get('use_portable_settings', False) %}checked{% endif %}
onchange="settingsManager.saveToggleSetting('usePortableSettings', 'use_portable_settings')">
<span class="toggle-slider"></span>
</label>
</div>
</div>
<div class="input-help">
{{ t('settings.storage.locationHelp') }}
</div>
</div>
</div>
<div class="settings-section">
<h3>{{ t('settings.sections.contentFiltering') }}</h3>