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

+1 -1
View File
@@ -131,7 +131,7 @@ bool JsonGet::getBool(const char *child_name) const {
return get(child_name)->value.getTag() == JSON_TRUE;
}
bool JsonGet::getBool(const char *child_name, bool default_value) const {
bool JsonGet::getBoolOr(const char *child_name, bool default_value) const {
const JsonNode *val = get(child_name);
if (val) {
JsonTag tag = val->value.getTag();