mirror of
https://github.com/HChaZZY/PiliPlus.git
synced 2025-12-16 15:16:15 +08:00
opt: webdav
Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user