mirror of
https://github.com/rustdesk/rustdesk.git
synced 2026-11-04 16:35:19 +00:00
better conditional compilation
Signed-off-by: dignow <linlong1265@gmail.com>
This commit is contained in:
1 parent
b9652d165b
commit
d15deabba5
10 files changed
+147
-94
No files matched your search
@@ -454,10 +454,10 @@ impl<T: InvokeUiCM> IpcTaskRunner<T> {
|
||||
}
|
||||
}
|
||||
Some(data) = self.rx.recv() => {
|
||||
if let Data::SwitchPermission{name, enabled} = &data {
|
||||
if let Data::SwitchPermission{name: _name, enabled: _enabled} = &data {
|
||||
#[cfg(windows)]
|
||||
if name == "file" {
|
||||
self.file_transfer_enabled = *enabled;
|
||||
if _name == "file" {
|
||||
self.file_transfer_enabled = *_enabled;
|
||||
}
|
||||
}
|
||||
if self.stream.send(&data).await.is_err() {
|
||||
|
||||
Reference in new issue
Block a user