Skip to content

Commit

Permalink
config: add explicit ctors for config variables
Browse files Browse the repository at this point in the history
fixes #139
  • Loading branch information
vaxerski committed Feb 21, 2024
1 parent 1013a80 commit 897cf0a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/config/ConfigManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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});
Expand Down

0 comments on commit 897cf0a

Please sign in to comment.