mirror of
https://github.com/rustdesk/rustdesk.git
synced 2026-11-05 16:38:17 +00:00
remove deserializing config option using default config (#7491)
Signed-off-by: 21pages <pages21@163.com> Co-authored-by: squarer3 <squalerblack@gmail.com>
This commit is contained in:
1 parent
dd90e84f6a
commit
96e1b5b0f6
2 files changed
+8
-24
No files matched your search
+1
-6
@@ -1481,12 +1481,7 @@ impl LoginConfigHandler {
|
||||
.map(|o| !o.is_empty())
|
||||
.unwrap_or(false);
|
||||
if is_set {
|
||||
if name == "zoom-cursor" {
|
||||
self.config.options.insert(name, "".to_owned());
|
||||
} else {
|
||||
// Notice: When PeerConfig loads, the default value is taken when the option key does not exist.
|
||||
self.config.options.remove(&name);
|
||||
}
|
||||
self.config.options.remove(&name);
|
||||
} else {
|
||||
self.config.options.insert(name, "Y".to_owned());
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user