From 9373791bc49600a096f917ea4dc1fea6a45c800d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Henrik=20Rydg=C3=A5rd?= Date: Mon, 9 Mar 2026 00:53:29 +0100 Subject: [PATCH] Adhoc: Show location directly in the server list --- UI/AdhocServerScreen.cpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/UI/AdhocServerScreen.cpp b/UI/AdhocServerScreen.cpp index 7d940f4364..06710671f0 100644 --- a/UI/AdhocServerScreen.cpp +++ b/UI/AdhocServerScreen.cpp @@ -134,7 +134,13 @@ AdhocServerRow::AdhocServerRow(std::string *value, const AdhocServerListEntry &e LinearLayout *lines = Add(new LinearLayout(ORIENT_VERTICAL, new LinearLayoutParams(Margins(5, 5)))); lines->SetSpacing(0.0f); lines->Add(new TextView(entry.name)); - lines->Add(new TextView(entry.host))->SetTextSize(TextSize::Small)->SetWordWrap(); + + std::string secondLine = entry.host; + if (!entry.location.empty()) { + secondLine += ": " + entry.location; + } + + lines->Add(new TextView(secondLine))->SetTextSize(TextSize::Small)->SetWordWrap(); Add(new Spacer(0.0f, new LinearLayoutParams(1.0f, Margins(0.0f, 5.0f))));