mirror of
https://github.com/weyne85/rustdesk.git
synced 2025-10-29 17:00:05 +00:00
more granular control over ui option update.
Signed-off-by: fufesou <shuanglongchen@yeah.net>
This commit is contained in:
@@ -107,6 +107,7 @@ pub fn callback_msg(
|
||||
if let Ok(s) =
|
||||
std::str::from_utf8(unsafe { std::slice::from_raw_parts(content as _, len) })
|
||||
{
|
||||
// No need to merge the msgs. Handling the msg one by one is ok.
|
||||
if let Ok(msg) = serde_json::from_str::<MsgToConfig>(s) {
|
||||
match &msg.r#type as _ {
|
||||
config::CONFIG_TYPE_LOCAL => {
|
||||
|
||||
Reference in New Issue
Block a user