mirror of
https://github.com/ElementsProject/elements.git
synced 2026-08-15 12:51:00 +02:00
chain: dont check for null settings value in overwriteRwSetting
- Just call updateRwSetting it will erase the settings when the new value is null.
This commit is contained in:
parent
df601993f2
commit
f8d91f49c7
2 changed files with 3 additions and 1 deletions
|
|
@ -834,7 +834,6 @@ public:
|
|||
}
|
||||
bool overwriteRwSetting(const std::string& name, common::SettingsValue value, interfaces::SettingsAction action) override
|
||||
{
|
||||
if (value.isNull()) return deleteRwSettings(name, action);
|
||||
return updateRwSetting(name, [&](common::SettingsValue& settings) {
|
||||
settings = std::move(value);
|
||||
return action;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue