diff --git a/src/flutter_ffi.rs b/src/flutter_ffi.rs index 3a8cfd447..9a3f1abab 100644 --- a/src/flutter_ffi.rs +++ b/src/flutter_ffi.rs @@ -685,7 +685,7 @@ pub fn main_get_connect_status() -> String { } #[cfg(any(target_os = "android", target_os = "ios"))] { - let mut state = get_online_statue(); + let mut state = hbb_common::config::get_online_statue(); if state > 0 { state = 1; } diff --git a/src/ipc.rs b/src/ipc.rs index 29adb6740..6a426e37d 100644 --- a/src/ipc.rs +++ b/src/ipc.rs @@ -186,10 +186,7 @@ pub enum Data { }, SystemInfo(Option), ClickTime(i64), - #[cfg(all( - not(any(target_os = "android", target_os = "ios")), - feature = "flutter" - ))] + #[cfg(not(any(target_os = "android", target_os = "ios")))] MouseMoveTime(i64), Authorize, Close, @@ -336,10 +333,7 @@ async fn handle(data: Data, stream: &mut Connection) { let t = crate::server::CLICK_TIME.load(Ordering::SeqCst); allow_err!(stream.send(&Data::ClickTime(t)).await); } - #[cfg(all( - not(any(target_os = "android", target_os = "ios")), - feature = "flutter" - ))] + #[cfg(not(any(target_os = "android", target_os = "ios")))] Data::MouseMoveTime(_) => { let t = crate::server::MOUSE_MOVE_TIME.load(Ordering::SeqCst); allow_err!(stream.send(&Data::MouseMoveTime(t)).await);