pop up errors

This commit is contained in:
Vaxry 2024-02-09 04:25:08 +00:00
parent 981eaa29df
commit d1ba1425b6

View file

@ -525,7 +525,11 @@ std::string CConfigManager::getMainConfigPath() {
void CConfigManager::reload() { void CConfigManager::reload() {
setDefaultAnimationVars(); 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() { void CConfigManager::setDefaultAnimationVars() {
@ -656,6 +660,11 @@ void CConfigManager::tick() {
setDefaultAnimationVars(); setDefaultAnimationVars();
const auto ERR = 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();
} }
} }