ab: unremember password in ab also unremember password in recent, and set alias also sync to recent

Signed-off-by: 21pages <pages21@163.com>
This commit is contained in:
21pages
2023-08-17 18:21:37 +08:00
parent 6045b5fead
commit d7f0acd96d
3 changed files with 35 additions and 24 deletions

View File

@@ -345,16 +345,7 @@ class _PeerTabPageState extends State<PeerTabPage>
gFFI.abModel.deletePeers(peers.map((p) => p.id).toList());
final future = gFFI.abModel.pushAb();
if (hasSynced) {
Future.delayed(Duration.zero, () async {
final succ = await future;
if (succ) {
await Future.delayed(
Duration(seconds: 2)); // success msg
BotToast.showText(
contentColor: Colors.lightBlue,
text: translate('synced_peer_readded_tip'));
}
});
gFFI.abModel.reSyncToast(future);
}
}
break;