Skip to content

feat: add option to exclude WebDAV credentials from backup#1947

Open
maxweilun1989 wants to merge 2 commits into
chen08209:mainfrom
maxweilun1989:fix/issue-1905-exclude-webdav-from-backup
Open

feat: add option to exclude WebDAV credentials from backup#1947
maxweilun1989 wants to merge 2 commits into
chen08209:mainfrom
maxweilun1989:fix/issue-1905-exclude-webdav-from-backup

Conversation

@maxweilun1989
Copy link
Copy Markdown

@maxweilun1989 maxweilun1989 commented Apr 12, 2026

概述

Closes #1905

备份与恢复 → 选项中新增开关,支持在备份时排除 WebDAV 账号信息(URL、用户名、密码)。开关默认开启,确保分享备份文件时不会泄露 WebDAV 凭据。

改动

文件 改动
lib/models/config.dart AppSettingProps 新增 excludeWebDAV 字段(默认 true
lib/controller.dart 备份时根据开关状态从 configMap 中移除 davProps
lib/views/backup_and_restore.dart 选项区域新增开关 UI
arb/intl_*.arb 新增 en、zh_CN、ja、ru 四语言翻译
生成文件 通过 build_runnerintl_utils 重新生成

截图

新开关位于「备份与恢复 → 选项」区域,与现有的「恢复策略」选项并列。
image

测试

  • macOS arm64 构建通过(flutter build macos
  • 所有修改文件 lsp_diagnostics 无错误
  • 默认值为 true(默认排除 WebDAV)
  • 开关开启时 → 备份文件不包含 davProps
  • 开关关闭时 → 备份文件正常包含 davProps
  • 无论开关状态,恢复备份均正常工作

Add excludeWebDAV toggle (default: on) in Backup & Restore settings.
When enabled, WebDAV account info (URL, username, password) is stripped
from backup files before export, making it safe to share backups.

Closes chen08209#1905
The material_color_utilities version bump was caused by a local
dependency resolution conflict, not related to chen08209#1905.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Feature] 备份时可以选择是否备份WebDAV账号

1 participant