Skip to content

Commit 37682ee

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 23dbc20 commit 37682ee

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
@@ -250,6 +250,9 @@ static void BackupSettings(const fs::path& filename, const QSettings& src)
250250

251251
void OptionsModel::Reset()
252252
{
253+
// Backup and reset settings.json
254+
node().resetSettings();
255+
253256
QSettings settings;
254257

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

0 commit comments

Comments
 (0)