mirror of
https://github.com/rustdesk/rustdesk.git
synced 2026-04-06 20:21:29 +03:00
change ffi flutter_config to flutter_option
Signed-off-by: dignow <linlong1265@gmail.com>
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;
|
||||
@@ -261,7 +261,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