Skip to content

An open-source remote desktop application designed for self-hosting, as an alternative to TeamViewer.

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

21pagesdc24868800ba
diff --git a/flutter/lib/common/widgets/peer_tab_page.dart b/flutter/lib/common/widgets/peer_tab_page.dart
index 59ae64274..0bc621d31 100644
--- a/flutter/lib/common/widgets/peer_tab_page.dart
+++ b/flutter/lib/common/widgets/peer_tab_page.dart
@@ -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);
}