Simplify advertise_server assignation
Since it's a bool we can just assign the result of the comparation
This commit is contained in:
parent
8dee403e7c
commit
de150ef9b3
@ -219,10 +219,9 @@ bool ConfigManager::loadServerSettings(server_settings* settings)
|
||||
}
|
||||
else {
|
||||
config->beginGroup("Options");
|
||||
if (config->value("advertise", "true").toString() != "true")
|
||||
settings->advertise_server = false;
|
||||
else
|
||||
settings->advertise_server = true;
|
||||
// Will be true of false depending on the key
|
||||
settings->advertise_server =
|
||||
(config->value("advertise", "true").toString() == "true");
|
||||
|
||||
if (config->value("webao_enable", "true").toString() != "true")
|
||||
settings->ws_port = -1;
|
||||
|
Loading…
Reference in New Issue
Block a user