mirror of
https://github.com/hyprwm/Hyprland
synced 2024-12-25 17:09:48 +01:00
pop up errors
This commit is contained in:
parent
981eaa29df
commit
d1ba1425b6
1 changed files with 10 additions and 1 deletions
|
@ -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();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue