Merge pull request #4666 from fufesou/fix/lan_delete_peer

fix delete peer on lan
This commit is contained in:
RustDesk 2023-06-16 19:21:01 +08:00 committed by GitHub
commit 0966cd9211
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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)) {