Merge 1be529a11b into merged_master (Elements PR #1130)

This commit is contained in:
Glenn Willen 2023-03-01 09:08:34 -08:00
commit 6478593fbe

View file

@ -91,5 +91,8 @@ const NetworkStyle* NetworkStyle::instantiate(const std::string& networkId)
}
// If it doesn't match any, use regtest since it's a custom chain
assert(networkId != "regtest");
return instantiate("regtest");
// but keep the chain name in the title
NetworkStyle* instance = const_cast<NetworkStyle*>(instantiate("regtest"));
instance->titleAddText = titleAddText.c_str();
return instance;
}