mirror of
https://github.com/rustdesk/rustdesk.git
synced 2025-12-13 11:35:56 +00:00
combine upload files/folder button (#9643)
* combine upload files/folder button Signed-off-by: 21pages <sunboeasy@gmail.com> * web compress cache Signed-off-by: 21pages <sunboeasy@gmail.com> --------- Signed-off-by: 21pages <sunboeasy@gmail.com>
This commit is contained in:
@@ -1209,7 +1209,12 @@ class RustdeskImpl {
|
||||
}
|
||||
|
||||
Future<String> mainLoadAb({dynamic hint}) {
|
||||
return Future(() => js.context.callMethod('getByName', ['load_ab']));
|
||||
Completer<String> completer = Completer();
|
||||
js.context["onLoadAbFinished"] = (String s) {
|
||||
completer.complete(s);
|
||||
};
|
||||
js.context.callMethod('setByName', ['load_ab']);
|
||||
return completer.future;
|
||||
}
|
||||
|
||||
Future<void> mainSaveGroup({required String json, dynamic hint}) {
|
||||
@@ -1222,7 +1227,12 @@ class RustdeskImpl {
|
||||
}
|
||||
|
||||
Future<String> mainLoadGroup({dynamic hint}) {
|
||||
return Future(() => js.context.callMethod('getByName', ['load_group']));
|
||||
Completer<String> completer = Completer();
|
||||
js.context["onLoadGroupFinished"] = (String s) {
|
||||
completer.complete(s);
|
||||
};
|
||||
js.context.callMethod('setByName', ['load_group']);
|
||||
return completer.future;
|
||||
}
|
||||
|
||||
Future<void> sessionSendPointer(
|
||||
|
||||
Reference in New Issue
Block a user