mirror of
https://github.com/weyne85/rustdesk.git
synced 2025-10-29 17:00:05 +00:00
Do not sync file clipboard before conn
Signed-off-by: dignow <linlong1265@gmail.com>
This commit is contained in:
@@ -6,9 +6,7 @@ use std::sync::{
|
||||
};
|
||||
|
||||
#[cfg(windows)]
|
||||
use clipboard::{
|
||||
cliprdr::CliprdrClientContext, empty_clipboard, get_last_file_format_list, ContextSend,
|
||||
};
|
||||
use clipboard::{cliprdr::CliprdrClientContext, empty_clipboard, ContextSend};
|
||||
use crossbeam_queue::ArrayQueue;
|
||||
use hbb_common::config::{PeerConfig, TransferSerde};
|
||||
use hbb_common::fs::{
|
||||
@@ -1053,13 +1051,6 @@ impl<T: InvokeUiSession> Remote<T> {
|
||||
}
|
||||
|
||||
self.is_connected = true;
|
||||
#[cfg(target_os = "windows")]
|
||||
if self.handler.peer_platform() == crate::platform::PLATFORM_WINDOWS {
|
||||
if let Some(last_file_format_list) = get_last_file_format_list() {
|
||||
self.handle_local_clipboard_msg(peer, Some(last_file_format_list))
|
||||
.await;
|
||||
}
|
||||
}
|
||||
}
|
||||
_ => {}
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user