simple change

Signed-off-by: dignow <linlong1265@gmail.com>
This commit is contained in:
dignow 2023-08-01 20:15:37 +08:00
parent 2ffc528986
commit a7e73df801

View File

@ -1187,7 +1187,9 @@ impl<T: InvokeUiSession> Session<T> {
pub async fn io_loop<T: InvokeUiSession>(handler: Session<T>) {
// It is ok to call this function multiple times.
#[cfg(target_os ="windows")]
clipboard::ContextSend::enable(true);
if !handler.is_file_transfer() && !handler.is_port_forward() {
clipboard::ContextSend::enable(true);
}
#[cfg(any(target_os = "android", target_os = "ios"))]
let (sender, receiver) = mpsc::unbounded_channel::<Data>();