fix multiselect does not reset on address book and groups (#7121)

Signed-off-by: 21pages <pages21@163.com>
This commit is contained in:
21pages 2024-02-13 21:06:42 +08:00 committed by GitHub
parent 1f557888f5
commit dc24868800
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -88,6 +88,9 @@ class _PeerTabPageState extends State<PeerTabPage>
Future<void> handleTabSelection(int tabIndex) async {
if (tabIndex < entries.length) {
if (tabIndex != gFFI.peerTabModel.currentTab) {
gFFI.peerTabModel.setCurrentTabCachedPeers([]);
}
gFFI.peerTabModel.setCurrentTab(tabIndex);
entries[tabIndex].load(hint: false);
}