From e47c6c76561807d30cff3c2e5372ea83c91a3677 Mon Sep 17 00:00:00 2001 From: Ryan Ofsky Date: Mon, 16 May 2022 14:37:00 -0400 Subject: [PATCH] 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. --- src/qt/optionsmodel.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/qt/optionsmodel.cpp b/src/qt/optionsmodel.cpp index 1b2bcefe94..0b4359a917 100644 --- a/src/qt/optionsmodel.cpp +++ b/src/qt/optionsmodel.cpp @@ -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