mirror of
https://github.com/hyprwm/Hyprland.git
synced 2025-08-08 08:01:57 -07:00
Fix plugin config breakage (#1687)
This commit is contained in:
committed by
GitHub
parent
51ce3ddd67
commit
141365cbc1
@@ -311,7 +311,7 @@ void CConfigManager::configSetValueSafe(const std::string& COMMAND, const std::s
|
|||||||
for (auto& [handle, pMap] : pluginConfigs) {
|
for (auto& [handle, pMap] : pluginConfigs) {
|
||||||
auto it = std::find_if(pMap->begin(), pMap->end(), [&](const auto& other) { return other.first == COMMAND; });
|
auto it = std::find_if(pMap->begin(), pMap->end(), [&](const auto& other) { return other.first == COMMAND; });
|
||||||
if (it == pMap->end()) {
|
if (it == pMap->end()) {
|
||||||
return; // plugin vars do not err, so we silently ignore.
|
continue; // May be in another plugin
|
||||||
}
|
}
|
||||||
|
|
||||||
CONFIGENTRY = &it->second;
|
CONFIGENTRY = &it->second;
|
||||||
|
Reference in New Issue
Block a user