Fix: Not using user's settings due to not specifying a group
This commit is contained in:
parent
c91d3a50a6
commit
8dee403e7c
@ -218,6 +218,7 @@ bool ConfigManager::loadServerSettings(server_settings* settings)
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
config->beginGroup("Options");
|
||||||
if (config->value("advertise", "true").toString() != "true")
|
if (config->value("advertise", "true").toString() != "true")
|
||||||
settings->advertise_server = false;
|
settings->advertise_server = false;
|
||||||
else
|
else
|
||||||
@ -225,6 +226,7 @@ bool ConfigManager::loadServerSettings(server_settings* settings)
|
|||||||
|
|
||||||
if (config->value("webao_enable", "true").toString() != "true")
|
if (config->value("webao_enable", "true").toString() != "true")
|
||||||
settings->ws_port = -1;
|
settings->ws_port = -1;
|
||||||
|
config->endGroup();
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user