config: add explicit ctors for config variables

fixes #139
This commit is contained in:
Vaxry 2024-02-21 16:28:39 +00:00
parent 1013a80608
commit 897cf0ae26
1 changed files with 3 additions and 3 deletions

View File

@ -132,9 +132,9 @@ CConfigManager::CConfigManager() {
config = std::make_unique<Hyprlang::CConfig>(configPath.c_str(), Hyprlang::SConfigOptions{.allowMissingConfig = true});
config->addConfigValue("ipc", {1L});
config->addConfigValue("splash", {0L});
config->addConfigValue("splash_offset", {2.F});
config->addConfigValue("ipc", Hyprlang::INT{1L});
config->addConfigValue("splash", Hyprlang::INT{0L});
config->addConfigValue("splash_offset", Hyprlang::FLOAT{2.F});
config->registerHandler(&handleWallpaper, "wallpaper", {.allowFlags = false});
config->registerHandler(&handleUnload, "unload", {.allowFlags = false});