mirror of
https://github.com/rustdesk/rustdesk.git
synced 2024-11-23 19:49:05 +08:00
fix: web send audit note (#9582)
Signed-off-by: fufesou <linlong1266@gmail.com>
This commit is contained in:
parent
e06f456bbd
commit
00d38260e1
@ -6,3 +6,11 @@ final platformFFI = PlatformFFI.instance;
|
||||
final localeName = PlatformFFI.localeName;
|
||||
|
||||
RustdeskImpl get bind => platformFFI.ffiBind;
|
||||
|
||||
String ffiGetByName(String name, [String arg = '']) {
|
||||
return PlatformFFI.getByName(name, arg);
|
||||
}
|
||||
|
||||
void ffiSetByName(String name, [String value = '']) {
|
||||
PlatformFFI.setByName(name, value);
|
||||
}
|
||||
|
@ -2,7 +2,6 @@ import 'package:desktop_multi_window/desktop_multi_window.dart';
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:flutter_hbb/common.dart';
|
||||
import 'package:get/get.dart';
|
||||
import 'native_model.dart' if (dart.library.html) 'web_model.dart';
|
||||
|
||||
import '../consts.dart';
|
||||
import './platform_model.dart';
|
||||
@ -83,7 +82,7 @@ class StateGlobal {
|
||||
}
|
||||
|
||||
procFullscreenWeb() {
|
||||
final isFullscreen = PlatformFFI.getByName('fullscreen') == 'Y';
|
||||
final isFullscreen = ffiGetByName('fullscreen') == 'Y';
|
||||
String fullscreenValue = '';
|
||||
if (isFullscreen && _fullscreen.isFalse) {
|
||||
fullscreenValue = 'N';
|
||||
@ -91,7 +90,7 @@ class StateGlobal {
|
||||
fullscreenValue = 'Y';
|
||||
}
|
||||
if (fullscreenValue.isNotEmpty) {
|
||||
PlatformFFI.setByName('fullscreen', fullscreenValue);
|
||||
ffiSetByName('fullscreen', fullscreenValue);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -1188,7 +1188,7 @@ class RustdeskImpl {
|
||||
|
||||
Future<void> sessionSendNote(
|
||||
{required UuidValue sessionId, required String note, dynamic hint}) {
|
||||
throw UnimplementedError();
|
||||
return Future(() => js.context.callMethod('setByName', ['send_note', note]));
|
||||
}
|
||||
|
||||
Future<String> sessionAlternativeCodecs(
|
||||
|
Loading…
Reference in New Issue
Block a user