fix saving peer window pos

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

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