opt: merge addon

Signed-off-by: Kingtous <kingtous@qq.com>
This commit is contained in:
Kingtous
2022-06-27 11:50:15 +08:00
parent 4a89469b84
commit 3f2aaae1ff
10 changed files with 35 additions and 40 deletions

View File

@@ -71,13 +71,6 @@ class _ConnectionPageState extends State<ConnectionPage> {
if (id == '') return;
id = id.replaceAll(' ', '');
if (isFileTransfer) {
if (!isDesktop) {
if (!await PermissionManager.check("file")) {
if (!await PermissionManager.request("file")) {
return;
}
}
}
await rustDeskWinManager.new_file_transfer(id);
} else {
await rustDeskWinManager.new_remote_desktop(id);
@@ -180,7 +173,7 @@ class _ConnectionPageState extends State<ConnectionPage> {
vertical: 8.0, horizontal: 8.0),
child: Text(
translate(
"File Transfer",
"Transfer File",
),
style: TextStyle(color: MyTheme.dark),
),
@@ -295,7 +288,7 @@ class _ConnectionPageState extends State<ConnectionPage> {
] +
([
PopupMenuItem<String>(
child: Text(translate('File transfer')), value: 'file')
child: Text(translate('Transfer File')), value: 'file')
]),
elevation: 8,
);

View File

@@ -268,7 +268,7 @@ class _RemotePageState extends State<RemotePage> {
Timer(Duration(milliseconds: 200), () {
resetMobileActionsOverlay();
_currentOrientation = orientation;
FFI.canvasModel.updateViewStyle();
gFFI.canvasModel.updateViewStyle();
});
}
return Container(

View File

@@ -2,6 +2,10 @@
#include <stdint.h>
#include <stdlib.h>
#define GET_MODULE_HANDLE_EX_FLAG_UNCHANGED_REFCOUNT 2
#define GET_MODULE_HANDLE_EX_FLAG_FROM_ADDRESS 4
typedef struct wire_uint_8_list {
uint8_t *ptr;
int32_t len;

View File

@@ -186,9 +186,11 @@ packages:
desktop_multi_window:
dependency: "direct main"
description:
path: "../../rustdesk_desktop_multi_window"
relative: true
source: path
path: "."
ref: c7d97cb6615f2def34f8bad4def01af9e0077beb
resolved-ref: c7d97cb6615f2def34f8bad4def01af9e0077beb
url: "https://github.com/Kingtous/rustdesk_desktop_multi_window"
source: git
version: "0.0.1"
device_info_plus:
dependency: "direct main"