mirror of
https://github.com/rustdesk/rustdesk.git
synced 2026-04-12 00:31:27 +03:00
fix: mobile, query onlines, on active (#8796)
* fix: mobile, query onlines, on active Signed-off-by: dignow <linlong1265@gmail.com> * Update peer_tab_page.dart --------- Signed-off-by: dignow <linlong1265@gmail.com> Co-authored-by: RustDesk <71636191+rustdesk@users.noreply.github.com>
This commit is contained in:
@@ -875,11 +875,14 @@ class _PeerSortDropdownState extends State<PeerSortDropdown> {
|
||||
@override
|
||||
void initState() {
|
||||
if (!PeerSortType.values.contains(peerSort.value)) {
|
||||
peerSort.value = PeerSortType.remoteId;
|
||||
bind.setLocalFlutterOption(
|
||||
k: kOptionPeerSorting,
|
||||
v: peerSort.value,
|
||||
);
|
||||
Future.delayed(Duration.zero, () {
|
||||
// do not change obx directly in initState, so do in future.
|
||||
peerSort.value = PeerSortType.remoteId;
|
||||
bind.setLocalFlutterOption(
|
||||
k: kOptionPeerSorting,
|
||||
v: peerSort.value,
|
||||
);
|
||||
});
|
||||
}
|
||||
super.initState();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user