PeerCard. Menu. Remove peer also from favorites when deleted
This commit is contained in:
parent
b98581303e
commit
27b8df617d
1 changed files with 4 additions and 0 deletions
|
|
@ -536,6 +536,10 @@ abstract class BasePeerCard extends StatelessWidget {
|
|||
if (isLan) {
|
||||
// TODO
|
||||
} else {
|
||||
final favs = (await bind.mainGetFav()).toList();
|
||||
if (favs.remove(id)) {
|
||||
await bind.mainStoreFav(favs: favs);
|
||||
}
|
||||
await bind.mainRemovePeer(id: id);
|
||||
}
|
||||
removePreference(id);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue