Page MenuHomePhabricator

gui: Prompt to reset settings when settings.json cannot be read
ClosedPublic

Authored by PiRK on May 21 2024, 14:09.

Details

Summary

Currently the GUI shows confusing error messages when settings.json can't be read or written on startup. This causes the unrecoverable read error described in core#21340 and write error described core#21974.

This PR tries to clarify the error dialog, and adds an option to just clear the settings and reset them to default

Fixes core#21340

Co-authored-by: Jarol Rodriguez <jarolrod@tutanota.com>

This is a backport of core-gui#379

Test Plan

ninja && src/qt/bitcoin-qt -settings=/dev/null

Diff Detail

Repository
rABC Bitcoin ABC
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

PiRK requested review of this revision.May 21 2024, 14:09
Fabien added a subscriber: Fabien.
Fabien added inline comments.
src/qt/bitcoin.cpp
204–207 ↗(On Diff #47849)

That would have been more elegant, but I guess it's better to stick to the original material here

This revision is now accepted and ready to land.May 21 2024, 14:28