fix reading and defaulting the IncludeSubdirectories config option

This commit is contained in:
Lion Kortlepel
2022-11-14 23:31:54 +01:00
parent a91eb02f5f
commit 7cc426cb96
2 changed files with 2 additions and 0 deletions

View File

@@ -35,6 +35,7 @@ Application::SettingsMap Application::mSettings = {
{ StrHTTPServerUseSSL, false },
{ StrHideUpdateMessages, false },
{ StrAuthKey, std::string("") },
{ StrIncludeSubdirectories, false },
};
// global, yes, this is ugly, no, it cant be done another way

View File

@@ -160,6 +160,7 @@ void TConfig::ParseFromFile(std::string_view name) {
TryReadValue(data, "Misc", StrSendErrors);
TryReadValue(data, "Misc", StrHideUpdateMessages);
TryReadValue(data, "Misc", StrSendErrorsMessageEnabled);
TryReadValue(data, "Misc", StrIncludeSubdirectories);
// HTTP
TryReadValue(data, "HTTP", StrSSLKeyPath);
TryReadValue(data, "HTTP", StrSSLCertPath);