From 8995a57f74f2ba87575cc81d6f37fbcc6b452fcc Mon Sep 17 00:00:00 2001 From: Star Rauchenberger Date: Tue, 16 Jul 2024 01:22:39 -0400 Subject: Display connection string in status bar --- src/ap_state.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/ap_state.cpp b/src/ap_state.cpp index 876fdd8..ebc5fc9 100644 --- a/src/ap_state.cpp +++ b/src/ap_state.cpp @@ -221,9 +221,11 @@ struct APState { RefreshTracker(false); }); - apclient->set_slot_connected_handler([this, &connection_mutex]( + apclient->set_slot_connected_handler([this, player, server, + &connection_mutex]( const nlohmann::json& slot_data) { - tracker_frame->SetStatusMessage("Connected to Archipelago!"); + tracker_frame->SetStatusMessage( + fmt::format("Connected to Archipelago! ({}@{})", player, server)); TrackerLog("Connected to Archipelago!"); data_storage_prefix = -- cgit 1.4.1