Removed enabled Insight config param and replaced with activateOnStartup param.
This commit is contained in:
@@ -13,4 +13,4 @@ environments:
|
||||
port: 1442
|
||||
|
||||
insight:
|
||||
enabled: true
|
||||
activateOnStartup: true
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -135,7 +135,7 @@ namespace Bloom
|
||||
|
||||
struct InsightConfig
|
||||
{
|
||||
bool insightEnabled = true;
|
||||
bool activateOnStartup = false;
|
||||
|
||||
InsightConfig() = default;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user