mirror of
https://github.com/hyprwm/Hyprland
synced 2024-12-25 06:09:49 +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() {
|
||||
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();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue