Refact/options (#9318)

* refact options

Signed-off-by: fufesou <linlong1266@gmail.com>

* Remove unused msg

Signed-off-by: fufesou <linlong1266@gmail.com>

* web, toggle virtual display

Signed-off-by: fufesou <linlong1266@gmail.com>

---------

Signed-off-by: fufesou <linlong1266@gmail.com>
This commit is contained in:
fufesou 2024-09-10 23:54:59 +08:00 committed by GitHub
parent 519539ed0a
commit 9380f33d7c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
7 changed files with 14 additions and 49 deletions

View file

@ -196,8 +196,8 @@ class RustdeskImpl {
required bool on,
dynamic hint}) {
return Future(() => js.context.callMethod('setByName', [
'option:toggle',
jsonEncode({implKey, on})
'toggle_privacy_mode',
jsonEncode({'impl_key': implKey, 'on': on})
]));
}
@ -1204,8 +1204,10 @@ class RustdeskImpl {
required int index,
required bool on,
dynamic hint}) {
// TODO
throw UnimplementedError();
return Future(() => js.context.callMethod('setByName', [
'toggle_virtual_display',
jsonEncode({'index': index, 'on': on})
]));
}
Future<void> mainSetHomeDir({required String home, dynamic hint}) {