mirror of
https://github.com/rustdesk/rustdesk.git
synced 2025-12-12 19:17:58 +00:00
change ffi flutter_config to flutter_option
Signed-off-by: dignow <linlong1265@gmail.com>
This commit is contained in:
@@ -36,7 +36,7 @@ class ToolbarState {
|
||||
late RxBool _pin;
|
||||
|
||||
ToolbarState() {
|
||||
final s = bind.getLocalFlutterConfig(k: kStoreKey);
|
||||
final s = bind.getLocalFlutterOption(k: kStoreKey);
|
||||
if (s.isEmpty) {
|
||||
_initSet(false, false);
|
||||
return;
|
||||
@@ -89,7 +89,7 @@ class ToolbarState {
|
||||
}
|
||||
|
||||
_savePin() async {
|
||||
bind.setLocalFlutterConfig(
|
||||
bind.setLocalFlutterOption(
|
||||
k: kStoreKey, v: jsonEncode({'pin': _pin.value}));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user