mirror of
https://github.com/weyne85/rustdesk.git
synced 2025-10-29 17:00:05 +00:00
skip PeerConfig saving when not receiving peerinfo to keep peercard order
Signed-off-by: 21pages <pages21@163.com>
This commit is contained in:
@@ -1209,6 +1209,10 @@ impl LoginConfigHandler {
|
||||
/// * `k` - key of option
|
||||
/// * `v` - value of option
|
||||
pub fn save_ui_flutter(&mut self, k: String, v: String) {
|
||||
if self.version == 0 && k == "wm_" {
|
||||
log::info!("skip saving {k}");
|
||||
return;
|
||||
}
|
||||
let mut config = self.load_config();
|
||||
config.ui_flutter.insert(k, v);
|
||||
self.save_config(config);
|
||||
|
||||
Reference in New Issue
Block a user