fix saving peer window pos

Signed-off-by: dignow <linlong1265@gmail.com>
This commit is contained in:
dignow committed 2023-08-10 19:48:26 +08:00
1 parent a1095b8844
commit 7921be45f5
4 files changed
+23 -13

No files matched your search

+5 -1
View File
@@ -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);
}