mirror of
https://github.com/rustdesk/rustdesk.git
synced 2024-11-25 05:09:04 +08:00
Fix syntax error
This commit is contained in:
parent
79aec0a63f
commit
8df3000b6b
@ -712,7 +712,6 @@ pub fn make_fd_flutter(id: i32, entries: &Vec<FileEntry>, only_count: bool) -> S
|
|||||||
serde_json::to_string(&m).unwrap_or("".into())
|
serde_json::to_string(&m).unwrap_or("".into())
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
pub fn get_keyboard_mode() -> String {
|
pub fn get_keyboard_mode() -> String {
|
||||||
return std::env::var("KEYBOARD_MODE")
|
return std::env::var("KEYBOARD_MODE")
|
||||||
.unwrap_or(String::from("legacy"))
|
.unwrap_or(String::from("legacy"))
|
||||||
@ -723,11 +722,13 @@ pub fn save_keyboard_mode(value: String) {
|
|||||||
std::env::set_var("KEYBOARD_MODE", value);
|
std::env::set_var("KEYBOARD_MODE", value);
|
||||||
}
|
}
|
||||||
|
|
||||||
lazy_static::lazy_static! {
|
|
||||||
pub static ref IS_X11: Mutex<bool> = {
|
|
||||||
#[cfg(target_os = "linux")]
|
|
||||||
Mutex::new("x11" == hbb_common::platform::linux::get_display_server());
|
|
||||||
#[cfg(not(target_os = "linux"))]
|
#[cfg(not(target_os = "linux"))]
|
||||||
Mutex::new(false)
|
lazy_static::lazy_static! {
|
||||||
};
|
pub static ref IS_X11: Mutex<bool> = Mutex::new(false);
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
#[cfg(target_os = "linux")]
|
||||||
|
lazy_static::lazy_static! {
|
||||||
|
pub static ref IS_X11: Mutex<bool> = Mutex::new("x11" == hbb_common::platform::linux::get_display_server());
|
||||||
}
|
}
|
Loading…
Reference in New Issue
Block a user