fix saving peer window pos
Signed-off-by: dignow <linlong1265@gmail.com>
This commit is contained in:
parent
a1095b8844
commit
7921be45f5
4 changed files with 23 additions and 13 deletions
|
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue