mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-11-11 14:38:29 +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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user