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:
Ryan Ofsky 2022-05-16 14:37:00 -04:00
parent 99ccc02b65
commit e47c6c7656

View file

@ -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