Removed enabled Insight config param and replaced with activateOnStartup param.
This commit is contained in:
@@ -13,4 +13,4 @@ environments:
|
|||||||
port: 1442
|
port: 1442
|
||||||
|
|
||||||
insight:
|
insight:
|
||||||
enabled: true
|
activateOnStartup: true
|
||||||
|
|||||||
@@ -57,7 +57,7 @@ namespace Bloom
|
|||||||
this->startup();
|
this->startup();
|
||||||
|
|
||||||
#ifndef EXCLUDE_INSIGHT
|
#ifndef EXCLUDE_INSIGHT
|
||||||
this->insightActivationPending = this->insightConfig->insightEnabled;
|
this->insightActivationPending = this->insightConfig->activateOnStartup;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
// Main event loop
|
// Main event loop
|
||||||
|
|||||||
@@ -71,8 +71,8 @@ namespace Bloom
|
|||||||
}
|
}
|
||||||
|
|
||||||
InsightConfig::InsightConfig(const YAML::Node& insightNode) {
|
InsightConfig::InsightConfig(const YAML::Node& insightNode) {
|
||||||
if (insightNode["enabled"]) {
|
if (insightNode["activateOnStartup"]) {
|
||||||
this->insightEnabled = insightNode["enabled"].as<bool>(this->insightEnabled);
|
this->activateOnStartup = insightNode["activateOnStartup"].as<bool>(this->activateOnStartup);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -135,7 +135,7 @@ namespace Bloom
|
|||||||
|
|
||||||
struct InsightConfig
|
struct InsightConfig
|
||||||
{
|
{
|
||||||
bool insightEnabled = true;
|
bool activateOnStartup = false;
|
||||||
|
|
||||||
InsightConfig() = default;
|
InsightConfig() = default;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user