fix: watchOS app cfg (#890)

This commit is contained in:
lollipopkit🏳️‍⚧️
2025-09-03 01:41:08 +08:00
committed by GitHub
parent e51804fa70
commit ec4b633889
3 changed files with 20 additions and 24 deletions

View File

@@ -108,14 +108,13 @@ class _IosSettingsPageState extends State<IosSettingsPage> {
}
void _onTapWatchApp(Map<String, dynamic> map) async {
final urls = Map<String, String>.from(map['urls'] as Map? ?? {});
final result = await KvEditor.route.go(context, KvEditorArgs(data: urls));
final cfgs = List<String>.from(map['urls'] as List? ?? []);
final result = await JsonListEditor.route.go(context, JsonListEditorArgs(data: cfgs));
if (result == null) return;
final (_, err) = await context.showLoadingDialog(
fn: () async {
final data = {'urls': result};
// Try realtime update (app must be running foreground).
try {
if (await wc.isReachable) {