fix: builtin editor (#503)

This commit is contained in:
lollipopkit🏳️‍⚧️
2024-07-28 15:06:34 +08:00
committed by GitHub
parent ca8211e1a4
commit 432d76f024
12 changed files with 53 additions and 78 deletions

View File

@@ -114,8 +114,12 @@ class _IOSSettingsPageState extends State<IOSSettingsPage> {
final result = await AppRoutes.kvEditor(data: urls).go(context);
if (result == null || result is! Map<String, String>) return;
await context.showLoadingDialog(fn: () async {
final suc = await context.showLoadingDialog(fn: () async {
await wc.updateApplicationContext({'urls': result});
return true;
});
if (suc == true) {
context.showSnackBar(l10n.success);
}
}
}