fix multiselect does not reset on address book and groups (#7121)
Signed-off-by: 21pages <pages21@163.com>
This commit is contained in:
parent
1f557888f5
commit
dc24868800
1 changed files with 3 additions and 0 deletions
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue