Skip to content

Commit 60a9db7

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 2af9e4c commit 60a9db7

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

246246
void OptionsModel::Reset()
247247
{
248+
// Backup and reset settings.json
249+
node().resetSettings();
250+
248251
QSettings settings;
249252

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

0 commit comments

Comments
 (0)