Remove some arc, and add some custom client

This commit is contained in:
rustdesk
2024-03-10 12:48:00 +08:00
parent 866ec097c0
commit 7060257051
6 changed files with 174 additions and 59 deletions

View File

@@ -1814,7 +1814,7 @@ pub fn main_support_remove_wallpaper() -> bool {
}
pub fn is_qs() -> SyncReturn<bool> {
SyncReturn(false)
SyncReturn(get_hard_option("connection-type") == "incoming");
}
/// Send a url scheme throught the ipc.
@@ -2052,6 +2052,10 @@ pub fn main_has_valid_2fa_sync() -> SyncReturn<bool> {
SyncReturn(has_valid_2fa())
}
pub fn main_get_hard_option(key: String) -> SyncReturn<String> {
SyncReturn(get_hard_option(key))
}
#[cfg(target_os = "android")]
pub mod server_side {
use hbb_common::{config, log};