Add the ability to hide adhoc servers using a "hidden" entry in the json.

Useful when servers are temporarily down.
This commit is contained in:
Henrik Rydgård committed 2026-04-23 11:12:58 +02:00
1 parent 0ef16c2ef4
commit 61e76fcf68
9 files changed
+58 -7

No files matched your search

+2
View File
@@ -726,6 +726,8 @@ void AdhocServerScreen::CreatePopupContents(UI::ViewGroup *parent) {
CollapsibleSection *publicSection = innerView->Add(new CollapsibleSection(n->T("Public server list"), new LinearLayoutParams(FILL_PARENT, WRAP_CONTENT)));
for (const auto &entry : entries) {
if (entry.hidden)
continue;
AddButtonFromEntry(publicSection, entry, false);
}