mirror of
https://github.com/lollipopkit/flutter_server_box.git
synced 2025-12-18 15:54:35 +01:00
fix: watchOS app cfg (#890)
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user