mirror of
https://github.com/rustdesk/rustdesk.git
synced 2025-05-11 02:16:00 +02:00
fix: web send audit note (#9582)
Signed-off-by: fufesou <linlong1266@gmail.com>
This commit is contained in:
parent
e06f456bbd
commit
00d38260e1
3 changed files with 11 additions and 4 deletions
|
@ -6,3 +6,11 @@ final platformFFI = PlatformFFI.instance;
|
||||||
final localeName = PlatformFFI.localeName;
|
final localeName = PlatformFFI.localeName;
|
||||||
|
|
||||||
RustdeskImpl get bind => platformFFI.ffiBind;
|
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/material.dart';
|
||||||
import 'package:flutter_hbb/common.dart';
|
import 'package:flutter_hbb/common.dart';
|
||||||
import 'package:get/get.dart';
|
import 'package:get/get.dart';
|
||||||
import 'native_model.dart' if (dart.library.html) 'web_model.dart';
|
|
||||||
|
|
||||||
import '../consts.dart';
|
import '../consts.dart';
|
||||||
import './platform_model.dart';
|
import './platform_model.dart';
|
||||||
|
@ -83,7 +82,7 @@ class StateGlobal {
|
||||||
}
|
}
|
||||||
|
|
||||||
procFullscreenWeb() {
|
procFullscreenWeb() {
|
||||||
final isFullscreen = PlatformFFI.getByName('fullscreen') == 'Y';
|
final isFullscreen = ffiGetByName('fullscreen') == 'Y';
|
||||||
String fullscreenValue = '';
|
String fullscreenValue = '';
|
||||||
if (isFullscreen && _fullscreen.isFalse) {
|
if (isFullscreen && _fullscreen.isFalse) {
|
||||||
fullscreenValue = 'N';
|
fullscreenValue = 'N';
|
||||||
|
@ -91,7 +90,7 @@ class StateGlobal {
|
||||||
fullscreenValue = 'Y';
|
fullscreenValue = 'Y';
|
||||||
}
|
}
|
||||||
if (fullscreenValue.isNotEmpty) {
|
if (fullscreenValue.isNotEmpty) {
|
||||||
PlatformFFI.setByName('fullscreen', fullscreenValue);
|
ffiSetByName('fullscreen', fullscreenValue);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -1188,7 +1188,7 @@ class RustdeskImpl {
|
||||||
|
|
||||||
Future<void> sessionSendNote(
|
Future<void> sessionSendNote(
|
||||||
{required UuidValue sessionId, required String note, dynamic hint}) {
|
{required UuidValue sessionId, required String note, dynamic hint}) {
|
||||||
throw UnimplementedError();
|
return Future(() => js.context.callMethod('setByName', ['send_note', note]));
|
||||||
}
|
}
|
||||||
|
|
||||||
Future<String> sessionAlternativeCodecs(
|
Future<String> sessionAlternativeCodecs(
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue