Fix: Not using user's settings due to not specifying a group

This commit is contained in:
likeawindrammer 2020-08-28 07:05:49 -06:00
parent c91d3a50a6
commit 8dee403e7c

View File

@ -218,6 +218,7 @@ bool ConfigManager::loadServerSettings(server_settings* settings)
return false;
}
else {
config->beginGroup("Options");
if (config->value("advertise", "true").toString() != "true")
settings->advertise_server = false;
else
@ -225,6 +226,7 @@ bool ConfigManager::loadServerSettings(server_settings* settings)
if (config->value("webao_enable", "true").toString() != "true")
settings->ws_port = -1;
config->endGroup();
return true;
}