graphical stuff

This commit is contained in:
2026-01-02 17:23:33 +01:00
parent c804695725
commit 1d72d7500a
4 changed files with 254 additions and 59 deletions

View File

@@ -1,5 +1,5 @@
use crate::gui_app::P2PClientApp;
use client_network::{NetworkCommand, NetworkEvent, start_p2p_executor};
use client_network::{NetworkCommand, NetworkEvent, P2PSharedData, start_p2p_executor};
mod gui_app;
@@ -11,7 +11,10 @@ async fn main() -> eframe::Result<()> {
// 2. Start the P2P Network Executor in a separate Tokio task
// The executor runs in the background of our main async runtime.
let _network_handle = start_p2p_executor(network_cmd_rx, network_event_tx);
let shared_data: Option<P2PSharedData> = None;
let _network_handle = start_p2p_executor(network_cmd_rx, network_event_tx, shared_data);
// 3. Configure and Run the Eframe/Egui GUI
let options = eframe::NativeOptions {