mac help cards

two mac issues:
1) windows position not saved, position not got, win manager issue?
2) freeCache not found from custom cursor channel
This commit is contained in:
rustdesk
2022-11-29 22:00:27 +08:00
parent e13e0ab18f
commit 420dd9c9db
8 changed files with 136 additions and 58 deletions

View File

@@ -40,7 +40,7 @@ pub extern "C" fn rustdesk_core_main() -> bool {
#[cfg(windows)]
#[no_mangle]
pub extern "C" fn rustdesk_core_main(args_len: *mut c_int) -> *mut *mut c_char {
pub extern "C" fn rustdesk_core_main_args(args_len: *mut c_int) -> *mut *mut c_char {
unsafe { std::ptr::write(args_len, 0) };
#[cfg(not(any(target_os = "android", target_os = "ios")))]
{

View File

@@ -483,6 +483,10 @@ pub fn main_get_option(key: String) -> String {
get_option(key)
}
pub fn main_get_error() -> String {
get_error()
}
pub fn main_set_option(key: String, value: String) {
if key.eq("custom-rendezvous-server") {
set_option(key, value);

View File

@@ -110,7 +110,7 @@ pub fn translate_locale(name: String, locale: &str) -> String {
"fa" => fa::T.deref(),
"ca" => ca::T.deref(),
"gr" => gr::T.deref(),
"gr" => sv::T.deref(),
"sv" => sv::T.deref(),
_ => en::T.deref(),
};
if let Some(v) = m.get(&name as &str) {