aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorVaxry <[email protected]>2024-02-09 04:25:08 +0000
committerVaxry <[email protected]>2024-02-09 04:25:18 +0000
commitd1ba1425b6df77d7ef3e5bdf5efce7d81aa85e99 (patch)
tree71308f3c7e3774f72e2b06e7a3ba3e8d9ad6509e
parent981eaa29df64d1e767df63eaf155e80b489caf34 (diff)
downloadHyprland-d1ba1425b6df77d7ef3e5bdf5efce7d81aa85e99.tar.gz
Hyprland-d1ba1425b6df77d7ef3e5bdf5efce7d81aa85e99.zip
pop up errors
-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();
}
}