flutter_desktop: fix sciter lan peers

Signed-off-by: fufesou <shuanglongchen@yeah.net>
This commit is contained in:
fufesou
2022-08-24 23:22:50 +08:00
parent 06064ee9f5
commit 92f1f17ca2
3 changed files with 10 additions and 7 deletions

View File

@@ -500,7 +500,11 @@ impl UI {
}
fn get_lan_peers(&self) -> String {
get_lan_peers()
let peers = get_lan_peers()
.into_iter()
.map(|(id, peer)| (id, peer.username, peer.hostname, peer.platform))
.collect::<Vec<(String, String, String, String)>>();
serde_json::to_string(&peers).unwrap_or_default()
}
fn get_uuid(&self) -> String {