delete discovery from RustDesk_lan_peers.toml

Signed-off-by: 21pages <pages21@163.com>
This commit is contained in:
21pages
2023-02-24 13:13:51 +08:00
parent ca991ff39f
commit 920477bbb2
4 changed files with 18 additions and 5 deletions

View File

@@ -413,9 +413,7 @@ impl UI {
}
fn remove_discovered(&mut self, id: String) {
let mut peers = config::LanPeers::load().peers;
peers.retain(|x| x.id != id);
config::LanPeers::store(&peers);
remove_discovered(id);
}
fn send_wol(&mut self, id: String) {