mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-02-21 14:34:49 +01:00
Reset settings.json when GUI options are reset
Clear settings.json file and save settings.json.bak file when "Reset Options" GUI button is pressed or -resetguisettings command line option is used.
This commit is contained in:
parent
99ccc02b65
commit
e47c6c7656
1 changed files with 3 additions and 0 deletions
|
@ -251,6 +251,9 @@ static void BackupSettings(const fs::path& filename, const QSettings& src)
|
|||
|
||||
void OptionsModel::Reset()
|
||||
{
|
||||
// Backup and reset settings.json
|
||||
node().resetSettings();
|
||||
|
||||
QSettings settings;
|
||||
|
||||
// Backup old settings to chain-specific datadir for troubleshooting
|
||||
|
|
Loading…
Add table
Reference in a new issue