about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorStar Rauchenberger <fefferburbia@gmail.com>2024-07-16 01:22:39 -0400
committerStar Rauchenberger <fefferburbia@gmail.com>2024-07-16 01:22:39 -0400
commit8995a57f74f2ba87575cc81d6f37fbcc6b452fcc (patch)
treec392635119ecb24cb2163b115f8d46ab995490e1
parent2bf1b2abf0e90da14080573d7270cca62b2815f0 (diff)
downloadlingo-ap-tracker-8995a57f74f2ba87575cc81d6f37fbcc6b452fcc.tar.gz
lingo-ap-tracker-8995a57f74f2ba87575cc81d6f37fbcc6b452fcc.tar.bz2
lingo-ap-tracker-8995a57f74f2ba87575cc81d6f37fbcc6b452fcc.zip
Display connection string in status bar
-rw-r--r--src/ap_state.cpp6
1 files 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 {
221 RefreshTracker(false); 221 RefreshTracker(false);
222 }); 222 });
223 223
224 apclient->set_slot_connected_handler([this, &connection_mutex]( 224 apclient->set_slot_connected_handler([this, player, server,
225 &connection_mutex](
225 const nlohmann::json& slot_data) { 226 const nlohmann::json& slot_data) {
226 tracker_frame->SetStatusMessage("Connected to Archipelago!"); 227 tracker_frame->SetStatusMessage(
228 fmt::format("Connected to Archipelago! ({}@{})", player, server));
227 TrackerLog("Connected to Archipelago!"); 229 TrackerLog("Connected to Archipelago!");
228 230
229 data_storage_prefix = 231 data_storage_prefix =