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 port: 1442
insight: insight:
enabled: true activateOnStartup: true

View File

@@ -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

View File

@@ -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);
} }
} }

View File

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