patch: add has_file_clipboard field to PeerInfo

Signed-off-by: ClSlaid <cailue@bupt.edu.cn>
This commit is contained in:
ClSlaid
2023-10-29 20:49:43 +08:00
parent 79f6b5c181
commit 80200a9983
7 changed files with 33 additions and 5 deletions

View File

@@ -1422,7 +1422,10 @@ pub async fn io_loop<T: InvokeUiSession>(handler: Session<T>, round: u32) {
// It is ok to call this function multiple times.
#[cfg(any(
target_os = "windows",
all(target_os = "linux", feature = "unix-file-copy-paste")
all(
any(target_os = "linux", target_os = "macos"),
feature = "unix-file-copy-paste"
)
))]
if !handler.is_file_transfer() && !handler.is_port_forward() {
clipboard::ContextSend::enable(true);