mirror of
https://github.com/ElementsProject/elements.git
synced 2026-08-15 12:51:00 +02:00
chain: move new settings safely in overwriteRwSetting
This commit is contained in:
parent
1c409004c8
commit
1e9e735670
3 changed files with 3 additions and 3 deletions
|
|
@ -828,7 +828,7 @@ public:
|
|||
// Now dump value to disk if requested
|
||||
return *action == interfaces::SettingsAction::SKIP_WRITE || args().WriteSettingsFile();
|
||||
}
|
||||
bool overwriteRwSetting(const std::string& name, common::SettingsValue& value, bool write) override
|
||||
bool overwriteRwSetting(const std::string& name, common::SettingsValue value, bool write) override
|
||||
{
|
||||
if (value.isNull()) return deleteRwSettings(name, write);
|
||||
return updateRwSetting(name, [&](common::SettingsValue& settings) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue