diff --git a/resources/bloom.template.yaml b/resources/bloom.template.yaml index bf05de72..98237106 100644 --- a/resources/bloom.template.yaml +++ b/resources/bloom.template.yaml @@ -13,4 +13,4 @@ environments: port: 1442 insight: - enabled: true + activateOnStartup: true diff --git a/src/Application.cpp b/src/Application.cpp index 77297aec..dbe8a4b5 100644 --- a/src/Application.cpp +++ b/src/Application.cpp @@ -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 diff --git a/src/ProjectConfig.cpp b/src/ProjectConfig.cpp index a3660518..44974f81 100644 --- a/src/ProjectConfig.cpp +++ b/src/ProjectConfig.cpp @@ -71,8 +71,8 @@ namespace Bloom } InsightConfig::InsightConfig(const YAML::Node& insightNode) { - if (insightNode["enabled"]) { - this->insightEnabled = insightNode["enabled"].as(this->insightEnabled); + if (insightNode["activateOnStartup"]) { + this->activateOnStartup = insightNode["activateOnStartup"].as(this->activateOnStartup); } } diff --git a/src/ProjectConfig.hpp b/src/ProjectConfig.hpp index 196fc145..83508e9f 100644 --- a/src/ProjectConfig.hpp +++ b/src/ProjectConfig.hpp @@ -135,7 +135,7 @@ namespace Bloom struct InsightConfig { - bool insightEnabled = true; + bool activateOnStartup = false; InsightConfig() = default;