From 2c489c7320fea1f4d17f0e90db4942af6b5655c3 Mon Sep 17 00:00:00 2001 From: Nav Date: Wed, 24 May 2023 23:33:34 +0100 Subject: [PATCH] Removed `enabled` Insight config param and replaced with `activateOnStartup` param. --- resources/bloom.template.yaml | 2 +- src/Application.cpp | 2 +- src/ProjectConfig.cpp | 4 ++-- src/ProjectConfig.hpp | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) 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;