mirror of
https://github.com/rustdesk/rustdesk.git
synced 2025-05-11 02:16:00 +02:00
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:
parent
519539ed0a
commit
9380f33d7c
7 changed files with 14 additions and 49 deletions
|
@ -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}) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue