mirror of
https://github.com/Retropex/bitcoin.git
synced 2025-05-12 19:20:42 +02:00
Bugfix: rwconf: Update internal setting when modifying file
Without this, the GUI will re-read the rwconf prune value each load of Settings
This commit is contained in:
parent
73db739d93
commit
7c812c86d4
@ -1014,6 +1014,9 @@ void ArgsManager::ModifyRWConfigFile(const std::map<std::string, std::string>& s
|
||||
fs::remove(rwconf_new_path);
|
||||
throw std::ios_base::failure(strprintf("Failed to replace %s", fs::PathToString(rwconf_new_path)));
|
||||
}
|
||||
for (const auto& setting_change : settings_to_change) {
|
||||
m_settings.rw_config[setting_change.first] = {setting_change.second};
|
||||
}
|
||||
if (!IsArgNegated("-settings")) {
|
||||
// Also save to settings.json for Core (0.21+) compatibility
|
||||
for (const auto& setting_change : settings_to_change) {
|
||||
|
Loading…
Reference in New Issue
Block a user