HomePhabricator

settings: Add resetSettings() method

Description

settings: Add resetSettings() method

Summary:
Allows the GUI to clear settings.json file and save settings.json.bak file when
GUI "Reset Options" button is pressed or -resetguisettings command line option
is used. (GUI code already backs up and resets the "guisettings.ini" file this
way, so this just makes the same behavior possible for "settings.json")

This concludes backport of core#15936
https://github.com/bitcoin/bitcoin/pull/15936/commits/f9fdcec7e932843a91ddf7f377e00bd2a6efb82a

Depends on D15066

Test Plan: ninja all check-all

Reviewers: #bitcoin_abc, Fabien

Reviewed By: #bitcoin_abc, Fabien

Differential Revision: https://reviews.bitcoinabc.org/D15067

Details

Provenance
Ryan Ofsky <ryan@ofsky.org>Authored on May 16 2022, 18:37
PiRKCommitted on Jan 4 2024, 14:05
PiRKPushed on Jan 4 2024, 14:05
Reviewer
Restricted Project
Differential Revision
D15067: settings: Add resetSettings() method
Parents
rABC012cad14f46c: init: Remove Shutdown() node.args reset
Branches
Unknown
Tags
Unknown