pub(crate) fn handle_events(
ui_receiver: &Receiver<UiEvent>,
tcp_sender: &mut Option<Sender<TcpClientMessage>>,
connection_state: &mut ConnectionState,
tree: &mut DockState<Tab>,
)Expand description
Drains and processes all queued UiEvent items sent from UI interactions or network handlers.
Manages connection state transitions, sends outgoing TCP messages, and activates/deactivates UI panels in the docking tree accordingly.
§Arguments
ui_receiver- Receiver channel for queuedUiEvents.tcp_sender- Mutable reference to the optional TCP client sender channel.connection_state- Mutable reference to the application’s centralConnectionState.tree- Mutable reference to the UI docking tree.