diff options
| author | vaxerski <43317083+vaxerski@users.noreply.github.com> | 2022-04-10 18:25:45 +0200 |
|---|---|---|
| committer | vaxerski <43317083+vaxerski@users.noreply.github.com> | 2022-04-10 18:25:45 +0200 |
| commit | 2cf4480969c05153fe9c2f3ca16812d61e14b0c0 (patch) | |
| tree | f81b63200c9f46523c5d01dc97b92548b72f853e /src/config | |
| parent | 71916ee09ada62e6d75bc801501e69252820bfd1 (diff) | |
fix fadeout blinking transparent windows
Diffstat (limited to 'src/config')
| -rw-r--r-- | src/config/ConfigManager.cpp | 12 | ||||
| -rw-r--r-- | src/config/ConfigManager.hpp | 3 |
2 files changed, 15 insertions, 0 deletions
diff --git a/src/config/ConfigManager.cpp b/src/config/ConfigManager.cpp index 70267f10..59d9566a 100644 --- a/src/config/ConfigManager.cpp +++ b/src/config/ConfigManager.cpp @@ -407,6 +407,18 @@ std::string CConfigManager::getString(std::string v) { return getConfigValueSafe(v).strValue; } +void CConfigManager::setInt(std::string v, int val) { + configValues[v].intValue = val; +} + +void CConfigManager::setFloat(std::string v, float val) { + configValues[v].floatValue = val; +} + +void CConfigManager::setString(std::string v, std::string val) { + configValues[v].strValue = val; +} + SMonitorRule CConfigManager::getMonitorRuleFor(std::string name) { SMonitorRule* found = nullptr; diff --git a/src/config/ConfigManager.hpp b/src/config/ConfigManager.hpp index 4537c4b8..663480d4 100644 --- a/src/config/ConfigManager.hpp +++ b/src/config/ConfigManager.hpp @@ -43,6 +43,9 @@ public: int getInt(std::string); float getFloat(std::string); std::string getString(std::string); + void setFloat(std::string, float); + void setInt(std::string, int); + void setString(std::string, std::string); SMonitorRule getMonitorRuleFor(std::string); |
