mirror of
https://github.com/rustdesk/rustdesk.git
synced 2026-04-06 04:11:28 +03:00
@@ -395,7 +395,7 @@ pub fn session_is_keyboard_mode_supported(session_id: SessionID, mode: String) -
|
||||
SyncReturn(is_keyboard_mode_supported(
|
||||
&mode,
|
||||
session.get_peer_version(),
|
||||
&session.peer_platform()
|
||||
&session.peer_platform(),
|
||||
))
|
||||
} else {
|
||||
SyncReturn(false)
|
||||
@@ -1529,6 +1529,21 @@ pub fn cm_switch_back(conn_id: i32) {
|
||||
crate::ui_cm_interface::switch_back(conn_id);
|
||||
}
|
||||
|
||||
pub fn cm_get_config(name: String) -> String {
|
||||
#[cfg(not(target_os = "ios"))]
|
||||
{
|
||||
if let Ok(Some(v)) = crate::ipc::get_config(&name) {
|
||||
v
|
||||
} else {
|
||||
"".to_string()
|
||||
}
|
||||
}
|
||||
#[cfg(target_os = "ios")]
|
||||
{
|
||||
"".to_string()
|
||||
}
|
||||
}
|
||||
|
||||
pub fn main_get_build_date() -> String {
|
||||
crate::BUILD_DATE.to_string()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user