mirror of
https://github.com/weyne85/rustdesk.git
synced 2025-10-29 17:00:05 +00:00
fix, settings on main window
Signed-off-by: dignow <linlong1265@gmail.com>
This commit is contained in:
@@ -606,6 +606,10 @@ pub fn main_get_option(key: String) -> String {
|
||||
get_option(key)
|
||||
}
|
||||
|
||||
pub fn main_get_option_sync(key: String) -> SyncReturn<String> {
|
||||
SyncReturn(get_option(key))
|
||||
}
|
||||
|
||||
pub fn main_get_error() -> String {
|
||||
get_error()
|
||||
}
|
||||
@@ -626,6 +630,10 @@ pub fn main_get_options() -> String {
|
||||
get_options()
|
||||
}
|
||||
|
||||
pub fn main_get_options_sync() -> SyncReturn<String> {
|
||||
SyncReturn(get_options())
|
||||
}
|
||||
|
||||
pub fn main_set_options(json: String) {
|
||||
let map: HashMap<String, String> = serde_json::from_str(&json).unwrap_or(HashMap::new());
|
||||
if !map.is_empty() {
|
||||
|
||||
Reference in New Issue
Block a user