mirror of
https://github.com/rustdesk/rustdesk.git
synced 2026-11-04 08:34:12 +00:00
fix saving peer window pos
Signed-off-by: dignow <linlong1265@gmail.com>
This commit is contained in:
1 parent
a1095b8844
commit
7921be45f5
4 files changed
+23
-13
No files matched your search
+5
-1
@@ -1214,7 +1214,11 @@ impl LoginConfigHandler {
|
||||
/// * `v` - value of option
|
||||
pub fn save_ui_flutter(&mut self, k: String, v: String) {
|
||||
let mut config = self.load_config();
|
||||
config.ui_flutter.insert(k, v);
|
||||
if v.is_empty() {
|
||||
config.ui_flutter.remove(&k);
|
||||
} else {
|
||||
config.ui_flutter.insert(k, v);
|
||||
}
|
||||
self.save_config(config);
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user