configmgr: fix CConfigValue<> from plugins
Some checks failed
Build Hyprland / Build Hyprland (Arch) (push) Has been cancelled
Build Hyprland / Build Hyprland with Meson (Arch) (push) Has been cancelled
Build Hyprland / Build Hyprland without precompiled headers (Arch) (push) Has been cancelled
Build Hyprland / Build Hyprland in pure Wayland (Arch) (push) Has been cancelled
Build Hyprland / Code Style (Arch) (push) Has been cancelled
Nix (CI) / update-inputs (push) Has been cancelled
Nix (CI) / build (push) Has been cancelled
Security Checks / Flawfinder Checks (push) Has been cancelled

This commit is contained in:
Vaxry 2025-05-02 17:53:55 +01:00
parent 77ecf09506
commit 0c736217a7
No known key found for this signature in database
GPG key ID: 665806380871D640

View file

@ -1640,6 +1640,9 @@ Hyprlang::CConfigValue* CConfigManager::getHyprlangConfigValuePtr(const std::str
if (!specialCat.empty())
return m_config->getSpecialConfigValuePtr(specialCat.c_str(), name.c_str(), nullptr);
if (name.starts_with("plugin:"))
return m_config->getSpecialConfigValuePtr("plugin", name.substr(7).c_str(), nullptr);
return m_config->getConfigValuePtr(name.c_str());
}