mirror of
https://github.com/rustdesk/rustdesk.git
synced 2026-04-06 17:31:28 +03:00
revert, peers card, sort by online status (#10829)
Signed-off-by: fufesou <linlong1266@gmail.com>
This commit is contained in:
@@ -25,13 +25,13 @@ class PeerSortType {
|
|||||||
static const String remoteId = 'Remote ID';
|
static const String remoteId = 'Remote ID';
|
||||||
static const String remoteHost = 'Remote Host';
|
static const String remoteHost = 'Remote Host';
|
||||||
static const String username = 'Username';
|
static const String username = 'Username';
|
||||||
// static const String status = 'Status';
|
static const String status = 'Status';
|
||||||
|
|
||||||
static List<String> values = [
|
static List<String> values = [
|
||||||
PeerSortType.remoteId,
|
PeerSortType.remoteId,
|
||||||
PeerSortType.remoteHost,
|
PeerSortType.remoteHost,
|
||||||
PeerSortType.username,
|
PeerSortType.username,
|
||||||
// PeerSortType.status
|
PeerSortType.status
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -384,9 +384,9 @@ class _PeersViewState extends State<_PeersView>
|
|||||||
peers.sort((p1, p2) =>
|
peers.sort((p1, p2) =>
|
||||||
p1.username.toLowerCase().compareTo(p2.username.toLowerCase()));
|
p1.username.toLowerCase().compareTo(p2.username.toLowerCase()));
|
||||||
break;
|
break;
|
||||||
// case PeerSortType.status:
|
case PeerSortType.status:
|
||||||
// peers.sort((p1, p2) => p1.online ? -1 : 1);
|
peers.sort((p1, p2) => p1.online ? -1 : 1);
|
||||||
// break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user