| 84 | } |
| 85 | |
| 86 | bool mitk::Preferences::GetBool(const std::string& key, bool def) const |
| 87 | { |
| 88 | auto value = this->FindValue(key); |
| 89 | |
| 90 | return value.has_value() |
| 91 | ? boost::algorithm::to_lower_copy(value.value()) == "true" |
| 92 | : def; |
| 93 | } |
| 94 | |
| 95 | void mitk::Preferences::PutBool(const std::string& key, bool value) |
| 96 | { |