fix reading and defaulting the IncludeSubdirectories config option

This commit is contained in:
Lion Kortlepel committed 2022-11-23 09:34:51 +01:00
1 parent a91eb02f5f
commit 7cc426cb96
2 files changed
+2

No files matched your search

+1
View File
@@ -35,6 +35,7 @@ Application::SettingsMap Application::mSettings = {
{ StrHTTPServerUseSSL, false }, { StrHTTPServerUseSSL, false },
{ StrHideUpdateMessages, false }, { StrHideUpdateMessages, false },
{ StrAuthKey, std::string("") }, { StrAuthKey, std::string("") },
{ StrIncludeSubdirectories, false },
}; };
// global, yes, this is ugly, no, it cant be done another way // global, yes, this is ugly, no, it cant be done another way
+1
View File
@@ -160,6 +160,7 @@ void TConfig::ParseFromFile(std::string_view name) {
TryReadValue(data, "Misc", StrSendErrors); TryReadValue(data, "Misc", StrSendErrors);
TryReadValue(data, "Misc", StrHideUpdateMessages); TryReadValue(data, "Misc", StrHideUpdateMessages);
TryReadValue(data, "Misc", StrSendErrorsMessageEnabled); TryReadValue(data, "Misc", StrSendErrorsMessageEnabled);
TryReadValue(data, "Misc", StrIncludeSubdirectories);
// HTTP // HTTP
TryReadValue(data, "HTTP", StrSSLKeyPath); TryReadValue(data, "HTTP", StrSSLKeyPath);
TryReadValue(data, "HTTP", StrSSLCertPath); TryReadValue(data, "HTTP", StrSSLCertPath);