server handshake gui

This commit is contained in:
2026-01-02 23:21:50 +01:00
parent 1914c68c9f
commit 74f30f2c7f
5 changed files with 91 additions and 55 deletions

View File

@@ -350,13 +350,20 @@ impl eframe::App for P2PClientApp {
selectable.context_menu(|ui| {
// ... action
match self.server_status {
ServerStatus::Connected => {}
_ => {
ServerStatus::Connected => {
if ui
.button("Utiliser le peer en tant que serveur")
.clicked()
{}
{
let res = self.network_cmd_tx.send(
NetworkCommand::ServerHandshake(
peer.to_string(),
self.connected_address.clone(),
),
);
}
}
_ => {}
}
if ui.button("Infos").clicked() {
// action 3