Skip to content

Commit e47c6c7

Browse files
committed
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.
1 parent 99ccc02 commit e47c6c7

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/qt/optionsmodel.cpp

+3
Original file line numberDiff line numberDiff line change
@@ -251,6 +251,9 @@ static void BackupSettings(const fs::path& filename, const QSettings& src)
251251

252252
void OptionsModel::Reset()
253253
{
254+
// Backup and reset settings.json
255+
node().resetSettings();
256+
254257
QSettings settings;
255258

256259
// Backup old settings to chain-specific datadir for troubleshooting

0 commit comments

Comments
 (0)