From 505b73d20ec7a7ea05d0c71ad93068b2011b29ba Mon Sep 17 00:00:00 2001 From: ClSlaid Date: Mon, 23 Oct 2023 20:17:36 +0800 Subject: [PATCH] patch: try fix flutter paste Signed-off-by: ClSlaid --- flutter/pubspec.yaml | 6 +++--- src/client/io_loop.rs | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/flutter/pubspec.yaml b/flutter/pubspec.yaml index 1ae62f341..a03a28e75 100644 --- a/flutter/pubspec.yaml +++ b/flutter/pubspec.yaml @@ -39,7 +39,7 @@ dependencies: package_info_plus: ^3.1.2 url_launcher: ^6.0.9 toggle_switch: ^2.1.0 - dash_chat_2: + dash_chat_2: git: url: https://github.com/rustdesk-org/Dash-Chat-2 draggable_float_widget: ^0.0.2 @@ -68,7 +68,7 @@ dependencies: get: ^4.6.5 visibility_detector: ^0.4.0+2 contextmenu: ^3.0.0 - desktop_drop: + desktop_drop: git: url: https://github.com/rustdesk-org/flutter-plugins path: ./packages/desktop_drop @@ -84,7 +84,7 @@ dependencies: git: url: https://github.com/rustdesk-org/flutter_improved_scrolling uni_links: ^0.5.1 - uni_links_desktop: + uni_links_desktop: git: url: https://github.com/rustdesk-org/uni_links_desktop path: ^1.8.1 diff --git a/src/client/io_loop.rs b/src/client/io_loop.rs index 0e6963d65..fd3bf1c6b 100644 --- a/src/client/io_loop.rs +++ b/src/client/io_loop.rs @@ -1716,7 +1716,7 @@ impl Remote { #[cfg(any(target_os = "windows", target_os = "linux"))] fn handle_cliprdr_msg(&self, clip: hbb_common::message_proto::Cliprdr) { log::debug!("handling cliprdr msg from server peer"); - #[cfg(feature = "flutter")] + #[cfg(all(feature = "flutter", not(target_os = "linux")))] if let Some(hbb_common::message_proto::cliprdr::Union::FormatList(_)) = &clip.union { if self.client_conn_id != clipboard::get_client_conn_id(&crate::flutter::get_cur_peer_id()).unwrap_or(0)