opt: webdav

Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
bggRGjQaUbCoE
2025-04-09 13:46:04 +08:00
parent 17e3a0206a
commit f403ed1a21
2 changed files with 17 additions and 10 deletions

View File

@@ -122,7 +122,11 @@ class _WebDavSettingPageState extends State<WebDavSettingPage> {
.put(SettingBoxKey.webdavDirectory, _directoryCtr.text);
try {
final res = await WebDav().init();
SmartDialog.showToast('配置${res ? '成功' : '失败'}');
if (res.first) {
SmartDialog.showToast('配置成功');
} else {
SmartDialog.showToast('配置失败: ${res.second}');
}
} catch (e) {
SmartDialog.showToast('配置失败: ${e.toString()}');
return;