mirror of
https://github.com/hyprwm/hyprlang.git
synced 2024-12-22 09:59:48 +01:00
internal: fix preload of dynamic special categories
oops
This commit is contained in:
parent
039f320202
commit
bb85de0919
1 changed files with 2 additions and 1 deletions
|
@ -86,7 +86,8 @@ void CConfig::addSpecialConfigValue(const char* cat, const char* name, const CCo
|
|||
reinterpret_cast<CConfigCustomValueType*>(value.m_pData)->handler,
|
||||
reinterpret_cast<CConfigCustomValueType*>(value.m_pData)->dtor});
|
||||
|
||||
const auto CAT = std::find_if(impl->specialCategories.begin(), impl->specialCategories.end(), [cat](const auto& other) { return other->name == cat; });
|
||||
const auto CAT = std::find_if(impl->specialCategories.begin(), impl->specialCategories.end(), [cat, name](const auto& other) { return other->name == cat && other->isStatic; });
|
||||
|
||||
if (CAT != impl->specialCategories.end())
|
||||
CAT->get()->values[name].defaultFrom(IT->get()->defaultValues[name]);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue