diff options
Diffstat (limited to 'lib/settings/configuration.cpp')
-rw-r--r-- | lib/settings/configuration.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/settings/configuration.cpp b/lib/settings/configuration.cpp index d91ae97..34d50db 100644 --- a/lib/settings/configuration.cpp +++ b/lib/settings/configuration.cpp @@ -95,6 +95,13 @@ std::vector<std::string> Configuration::childrenGroups(const char* name) return groupNames; } +void Configuration::resetValue(const char *path) +{ + if(m_userCfg->exists(path)) { + m_userCfg->getRoot().remove(path); + } +} + template<typename T> std::optional<T> Configuration::value(const char* path) const { |