An open-source remote desktop application designed for self-hosting, as an alternative to TeamViewer.
Rust androidanydeskdartflatpakflutterflutter-appsioslinuxmacosp2prdpremote-controlremote-desktoprustrust-langteamviewervncwaylandwindows
peers view show no more than 1000 after filter
21pages5236dcfe5207
diff --git a/flutter/lib/common/widgets/peers_view.dart b/flutter/lib/common/widgets/peers_view.dartindex c4df60479..0b3785199 100644--- a/flutter/lib/common/widgets/peers_view.dart+++ b/flutter/lib/common/widgets/peers_view.dart@@ -176,7 +176,8 @@ class _PeersViewState extends State<_PeersView> with WindowListener {return FutureBuilder<List<Peer>>(builder: (context, snapshot) {if (snapshot.hasData) {- final peers = snapshot.data!;+ var peers = snapshot.data!;+ if (peers.length > 1000) peers = peers.sublist(0, 1000);gFFI.peerTabModel.setCurrentTabCachedPeers(peers);buildOnePeer(Peer peer) {final visibilityChild = VisibilityDetector(diff --git a/flutter/lib/models/group_model.dart b/flutter/lib/models/group_model.dartindex ebd49b560..b8bc2722d 100644--- a/flutter/lib/models/group_model.dart+++ b/flutter/lib/models/group_model.dart@@ -173,9 +173,6 @@ class GroupModel {}if (json.containsKey('total')) {if (total == 0) total = json['total'];- if (total > 1000) {- total = 1000;- }if (json.containsKey('data')) {final data = json['data'];if (data is List) {@@ -188,9 +185,6 @@ class GroupModel {} else {tmpPeers[index] = peer;}- if (tmpPeers.length >= 1000) {- break;- }}}}