mirror of
https://github.com/rustdesk/rustdesk.git
synced 2026-04-11 19:21:28 +03:00
more web api
This commit is contained in:
@@ -78,7 +78,8 @@ class _RemotePageState extends State<RemotePage> {
|
||||
return _bottom >= 100;
|
||||
}
|
||||
|
||||
void interval() {
|
||||
// crash on web before widgit initiated.
|
||||
void intervalUnsafe() {
|
||||
var v = MediaQuery.of(context).viewInsets.bottom;
|
||||
if (v != _bottom) {
|
||||
resetTool();
|
||||
@@ -92,6 +93,12 @@ class _RemotePageState extends State<RemotePage> {
|
||||
FFI.ffiModel.update(widget.id, context, handleMsgbox);
|
||||
}
|
||||
|
||||
void interval() {
|
||||
try {
|
||||
intervalUnsafe();
|
||||
} catch (e) {}
|
||||
}
|
||||
|
||||
void handleMsgbox(Map<String, dynamic> evt, String id) {
|
||||
var type = evt['type'];
|
||||
var title = evt['title'];
|
||||
|
||||
Reference in New Issue
Block a user