Fixed a regression of Hostname #2372
This commit is contained in:
parent
a3200ad285
commit
53c416b819
2 changed files with 2 additions and 2 deletions
|
@ -336,7 +336,7 @@ void AppConfig::set_defaults()
|
||||||
// #endif
|
// #endif
|
||||||
|
|
||||||
if (get("allow_ip_resolve").empty())
|
if (get("allow_ip_resolve").empty())
|
||||||
set("allow_ip_resolve", "1");
|
set_bool("allow_ip_resolve", true);
|
||||||
|
|
||||||
if (get("presets", "filament_colors").empty()) {
|
if (get("presets", "filament_colors").empty()) {
|
||||||
set_str("presets", "filament_colors", "#F2754E");
|
set_str("presets", "filament_colors", "#F2754E");
|
||||||
|
|
|
@ -81,7 +81,7 @@ public:
|
||||||
std::string get(const std::string &key) const
|
std::string get(const std::string &key) const
|
||||||
{ std::string value; this->get("app", key, value); return value; }
|
{ std::string value; this->get("app", key, value); return value; }
|
||||||
bool get_bool(const std::string &key) const
|
bool get_bool(const std::string &key) const
|
||||||
{ return this->get(key) == "true"; }
|
{ return this->get(key) == "true" || this->get(key) == "1"; }
|
||||||
void set(const std::string §ion, const std::string &key, const std::string &value)
|
void set(const std::string §ion, const std::string &key, const std::string &value)
|
||||||
{
|
{
|
||||||
#ifndef NDEBUG
|
#ifndef NDEBUG
|
||||||
|
|
Loading…
Reference in a new issue