fix build

Signed-off-by: dignow <linlong1265@gmail.com>
This commit is contained in:
dignow 2023-06-23 13:22:05 +08:00
parent 72cfea9202
commit e6c3c55b39
2 changed files with 3 additions and 9 deletions

View File

@ -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;
}

View File

@ -186,10 +186,7 @@ pub enum Data {
},
SystemInfo(Option<String>),
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);