Settings and dev settings: Preserve the current tab. Minor UI tweaks.

This commit is contained in:
Henrik Rydgård committed 2026-04-06 12:09:40 -06:00
1 parent 8304d8622a
commit 49d3d3dc37
14 files changed
+46 -11

No files matched your search

+2
View File
@@ -302,9 +302,11 @@ void AdhocServerInfoScreen::CreatePopupContents(UI::ViewGroup *parent) {
content->Add(new TextView(ni->T("No games in progress on this server")));
}
} else {
// content->Add(new InfoItem(ni->T("Games being played"), StringFromFormat("%zu", games_.size())));
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());
CollapsibleSection *gameSection = content->Add(new CollapsibleSection(title));
gameSection->Header()->SetUnderline(false);
for (const AdhocGroup &group : game.groups) {
if (group.usercount >= 1 && group.name == "Groupless") {
gameSection->Add(new TextView(" " + ApplySafeSubstitutions(ni->T("Players waiting: %1"), group.usercount)))->SetTextSize(TextSize::Small);