mirror of
https://github.com/weyne85/rustdesk.git
synced 2025-10-29 17:00:05 +00:00
patch: add has_file_clipboard field to PeerInfo
Signed-off-by: ClSlaid <cailue@bupt.edu.cn>
This commit is contained in:
@@ -1019,6 +1019,13 @@ impl Connection {
|
||||
let mut pi = PeerInfo {
|
||||
username: username.clone(),
|
||||
version: VERSION.to_owned(),
|
||||
has_file_clipboard: cfg!(any(
|
||||
target_os = "windows",
|
||||
all(
|
||||
feature = "unix-file-copy-paste",
|
||||
any(target_os = "linux", target_os = "macos")
|
||||
)
|
||||
)),
|
||||
..Default::default()
|
||||
};
|
||||
|
||||
|
||||
@@ -153,6 +153,13 @@ pub fn new() -> GenericService {
|
||||
|
||||
fn displays_to_msg(displays: Vec<DisplayInfo>) -> Message {
|
||||
let mut pi = PeerInfo {
|
||||
has_file_clipboard: cfg!(any(
|
||||
target_os = "windows",
|
||||
all(
|
||||
feature = "unix-file-copy-paste",
|
||||
any(target_os = "linux", target_os = "macos")
|
||||
)
|
||||
)),
|
||||
..Default::default()
|
||||
};
|
||||
pi.displays = displays.clone();
|
||||
|
||||
Reference in New Issue
Block a user