|
|
|
@ -414,17 +414,20 @@ void Manager::setBool(const std::string &setting, const std::string &category, c
|
|
|
|
|
setString(setting, category, value ? "true" : "false");
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void Manager::apply(const std::string &setting, const std::string &category)
|
|
|
|
|
void Manager::resetPendingChange(const std::string &setting, const std::string &category)
|
|
|
|
|
{
|
|
|
|
|
CategorySettingValueMap::key_type key = std::make_pair(category, setting);
|
|
|
|
|
mChangedSettings.erase(key);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
const CategorySettingVector Manager::apply()
|
|
|
|
|
const CategorySettingVector Manager::getPendingChanges()
|
|
|
|
|
{
|
|
|
|
|
return mChangedSettings;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void Manager::resetPendingChanges()
|
|
|
|
|
{
|
|
|
|
|
CategorySettingVector vec = mChangedSettings;
|
|
|
|
|
mChangedSettings.clear();
|
|
|
|
|
return vec;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|