Add a couple known status pages

This commit is contained in:
Henrik Rydgård committed 2026-03-30 12:18:49 -06:00
1 parent df7ebd38be
commit 36b273841b
2 files changed
+16 -10

No files matched your search

+5 -1
View File
@@ -254,7 +254,11 @@ void AdhocServerInfoScreen::CreatePopupContents(UI::ViewGroup *parent) {
}
} else {
if (games_.empty()) {
content->Add(new TextView(ni->T("No games in progress on this server")));
if (statusRequest_) {
// Still loading. TODO: Show a spinner or something.
} else {
content->Add(new TextView(ni->T("No games in progress on this server")));
}
} else {
for (const AdhocGame &game : games_) {
std::string title = game.name + " - " + ApplySafeSubstitutions(ni->T("players: %1"), game.usercount) + " " + ApplySafeSubstitutions(ni->T("groups: %1"), (int)game.groups.size());