mirror of
https://github.com/rustdesk/rustdesk.git
synced 2026-09-11 23:11:01 +03:00
refact: remove feature cli (#15524)
Signed-off-by: fufesou <linlong1266@gmail.com>
This commit is contained in:
@@ -12,7 +12,7 @@ use hbb_common::{
|
||||
log,
|
||||
};
|
||||
|
||||
#[cfg(not(any(feature = "flutter", feature = "cli")))]
|
||||
#[cfg(not(feature = "flutter"))]
|
||||
use crate::ui_session_interface::Session;
|
||||
use crate::{common::get_app_name, ipc, ui_interface::*};
|
||||
|
||||
@@ -29,7 +29,7 @@ lazy_static::lazy_static! {
|
||||
static ref STUPID_VALUES: Mutex<Vec<Arc<Vec<Value>>>> = Default::default();
|
||||
}
|
||||
|
||||
#[cfg(not(any(feature = "flutter", feature = "cli")))]
|
||||
#[cfg(not(feature = "flutter"))]
|
||||
lazy_static::lazy_static! {
|
||||
pub static ref CUR_SESSION: Arc<Mutex<Option<Session<remote::SciterHandler>>>> = Default::default();
|
||||
}
|
||||
@@ -151,7 +151,7 @@ pub fn start(args: &mut [String]) {
|
||||
frame.register_behavior("native-remote", move || {
|
||||
let handler =
|
||||
remote::SciterSession::new(cmd.clone(), id.clone(), pass.clone(), args.clone());
|
||||
#[cfg(not(any(feature = "flutter", feature = "cli")))]
|
||||
#[cfg(not(feature = "flutter"))]
|
||||
{
|
||||
*CUR_SESSION.lock().unwrap() = Some(handler.inner());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user