server handshake gui
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user