Removed enabled Insight config param and replaced with activateOnStartup param.

This commit is contained in:
Nav
2023-05-24 23:33:34 +01:00
parent 8c65bc2cc0
commit 2c489c7320
4 changed files with 5 additions and 5 deletions

View File

@@ -13,4 +13,4 @@ environments:
port: 1442
insight:
enabled: true
activateOnStartup: true

View File

@@ -57,7 +57,7 @@ namespace Bloom
this->startup();
#ifndef EXCLUDE_INSIGHT
this->insightActivationPending = this->insightConfig->insightEnabled;
this->insightActivationPending = this->insightConfig->activateOnStartup;
#endif
// Main event loop

View File

@@ -71,8 +71,8 @@ namespace Bloom
}
InsightConfig::InsightConfig(const YAML::Node& insightNode) {
if (insightNode["enabled"]) {
this->insightEnabled = insightNode["enabled"].as<bool>(this->insightEnabled);
if (insightNode["activateOnStartup"]) {
this->activateOnStartup = insightNode["activateOnStartup"].as<bool>(this->activateOnStartup);
}
}

View File

@@ -135,7 +135,7 @@ namespace Bloom
struct InsightConfig
{
bool insightEnabled = true;
bool activateOnStartup = false;
InsightConfig() = default;