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:
21pages
2024-03-23 20:20:12 -07:00
committed by GitHub
parent dd90e84f6a
commit 96e1b5b0f6
2 changed files with 8 additions and 24 deletions

View File

@@ -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());
}