From ec51cc4c0d93446a40432d0caeef2348a2bb196e Mon Sep 17 00:00:00 2001 From: fufesou Date: Fri, 16 Jun 2023 18:53:46 +0800 Subject: [PATCH] fix delete peer on lan Signed-off-by: fufesou --- flutter/lib/common/widgets/peer_card.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/flutter/lib/common/widgets/peer_card.dart b/flutter/lib/common/widgets/peer_card.dart index ccc9014d6..e2bcd3955 100644 --- a/flutter/lib/common/widgets/peer_card.dart +++ b/flutter/lib/common/widgets/peer_card.dart @@ -727,7 +727,7 @@ abstract class BasePeerCard extends StatelessWidget { (setState, close, context) { submit() async { if (isLan) { - bind.mainRemoveDiscovered(id: id); + await bind.mainRemoveDiscovered(id: id); } else { final favs = (await bind.mainGetFav()).toList(); if (favs.remove(id)) {