mirror of
https://github.com/rustdesk/rustdesk.git
synced 2026-04-10 07:31:29 +03:00
Merge pull request #5331 from dignow/fix/save_peer_window_pos
fix saving peer window pos
This commit is contained in:
@@ -41,7 +41,7 @@ class LoadEvent {
|
||||
final peerSearchText = "".obs;
|
||||
|
||||
/// for peer sort, global obs value
|
||||
final peerSort = bind.getLocalFlutterConfig(k: 'peer-sorting').obs;
|
||||
final peerSort = bind.getLocalFlutterOption(k: 'peer-sorting').obs;
|
||||
|
||||
// list for listener
|
||||
final obslist = [peerSearchText, peerSort].obs;
|
||||
@@ -264,7 +264,7 @@ class _PeersViewState extends State<_PeersView> with WindowListener {
|
||||
// fallback to id sorting
|
||||
if (!PeerSortType.values.contains(sortedBy)) {
|
||||
sortedBy = PeerSortType.remoteId;
|
||||
bind.setLocalFlutterConfig(
|
||||
bind.setLocalFlutterOption(
|
||||
k: "peer-sorting",
|
||||
v: sortedBy,
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user