Skip to content

Commit

Permalink
Reset settings.json when GUI options are reset
Browse files Browse the repository at this point in the history
Clear settings.json file and save settings.json.bak file when "Reset Options"
GUI button is pressed or -resetguisettings command line option is used.
  • Loading branch information
ryanofsky committed May 26, 2022
1 parent d980148 commit 689dd65
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/qt/optionsmodel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -250,6 +250,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
Expand Down

0 comments on commit 689dd65

Please sign in to comment.