Show the entry even for hidden adhoc servers if they are currently chosen.

This commit is contained in:
Henrik Rydgård committed 2026-05-01 15:05:22 +02:00
1 parent ede551ff87
commit 34512a4aa1
1 file changed
+2 -1
+2 -1
View File
@@ -726,7 +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)
// Show even hidden entries, as long as they are chosen currently.
if (entry.hidden && entry.host != g_Config.sProAdhocServer)
continue;
AddButtonFromEntry(publicSection, entry, false);
}