aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--src/config/ConfigManager.cpp11
1 files changed, 10 insertions, 1 deletions
diff --git a/src/config/ConfigManager.cpp b/src/config/ConfigManager.cpp
index 7b345314..0c3f1a60 100644
--- a/src/config/ConfigManager.cpp
+++ b/src/config/ConfigManager.cpp
@@ -525,7 +525,11 @@ std::string CConfigManager::getMainConfigPath() {
void CConfigManager::reload() {
setDefaultAnimationVars();
- m_pConfig->parse();
+ const auto ERR = m_pConfig->parse();
+ if (ERR.error)
+ g_pHyprError->queueCreate(ERR.getError(), CColor{1.0, 0.1, 0.1, 1.0});
+ else
+ g_pHyprError->destroy();
}
void CConfigManager::setDefaultAnimationVars() {
@@ -656,6 +660,11 @@ void CConfigManager::tick() {
setDefaultAnimationVars();
const auto ERR = m_pConfig->parse();
+
+ if (ERR.error)
+ g_pHyprError->queueCreate(ERR.getError(), CColor{1.0, 0.1, 0.1, 1.0});
+ else
+ g_pHyprError->destroy();
}
}