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 committed 2022-05-26 11:05:10 -04:00
1 parent 99ccc02b65
commit e47c6c7656
1 file changed
+3
+3
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