Merge pull request #731 from Heap-Hop/master

Fix two small bugs of Android
This commit is contained in:
RustDesk 2022-06-08 23:13:05 +08:00 committed by GitHub
commit d1da63fc97
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 9 additions and 16 deletions

2
.gitignore vendored
View File

@ -9,13 +9,11 @@ src/version.rs
*dmg *dmg
*exe *exe
*tgz *tgz
*lib
cert.pfx cert.pfx
*.bak *.bak
*png *png
*svg *svg
*jpg *jpg
web_hbb
sciter.dll sciter.dll
**pdb **pdb
src/bridge_generated.rs src/bridge_generated.rs

View File

@ -256,7 +256,7 @@ class _ConnectionPageState extends State<ConnectionPage> {
? [] ? []
: [ : [
PopupMenuItem<String>( PopupMenuItem<String>(
child: Text(translate('File transfer')), value: 'file') child: Text(translate('Transfer File')), value: 'file')
]), ]),
elevation: 8, elevation: 8,
); );

View File

@ -204,7 +204,7 @@ class _PermissionCheckerState extends State<PermissionChecker> {
serverModel.toggleService), serverModel.toggleService),
PermissionRow(translate("Input Control"), serverModel.inputOk, PermissionRow(translate("Input Control"), serverModel.inputOk,
serverModel.toggleInput), serverModel.toggleInput),
PermissionRow(translate("File Transfer"), serverModel.fileOk, PermissionRow(translate("Transfer File"), serverModel.fileOk,
serverModel.toggleFile), serverModel.toggleFile),
hasAudioPermission hasAudioPermission
? PermissionRow(translate("Audio Capture"), serverModel.audioOk, ? PermissionRow(translate("Audio Capture"), serverModel.audioOk,

View File

@ -651,19 +651,14 @@ impl Connection {
} }
self.authorized = true; self.authorized = true;
let mut pi = PeerInfo { pi.username = username;
hostname: whoami::hostname(), pi.sas_enabled = sas_enabled;
username, pi.features = Some(Features {
platform: whoami::platform().to_string(), privacy_mode: video_service::is_privacy_mode_supported(),
version: crate::VERSION.to_owned(),
sas_enabled,
features: Some(Features {
privacy_mode: video_service::is_privacy_mode_supported(),
..Default::default()
})
.into(),
..Default::default() ..Default::default()
}; })
.into();
let mut sub_service = false; let mut sub_service = false;
if self.file_transfer.is_some() { if self.file_transfer.is_some() {
res.set_peer_info(pi); res.set_peer_info(pi);