core: fix invalid type passed to CConfig

This commit is contained in:
Vaxry 2024-01-03 14:10:31 +01:00
parent 09e97f5940
commit a2c37e2d6e

View file

@ -209,7 +209,7 @@ CPortalManager::CPortalManager() {
std::string path = XDG_CONFIG_HOME ? std::string{XDG_CONFIG_HOME} + "/hypr/xdph.conf" : std::string{HOME} + "/.config/hypr/xdph.conf"; std::string path = XDG_CONFIG_HOME ? std::string{XDG_CONFIG_HOME} + "/hypr/xdph.conf" : std::string{HOME} + "/.config/hypr/xdph.conf";
m_sConfig.config = std::make_unique<Hyprlang::CConfig>(path, Hyprlang::SConfigOptions{.allowMissingConfig = true}); m_sConfig.config = std::make_unique<Hyprlang::CConfig>(path.c_str(), Hyprlang::SConfigOptions{.allowMissingConfig = true});
m_sConfig.config->addConfigValue("general:toplevel_dynamic_bind", {0L}); m_sConfig.config->addConfigValue("general:toplevel_dynamic_bind", {0L});