HomePhabricator

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

Description

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

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

Reviewers: #bitcoin_abc, Fabien

Reviewed By: #bitcoin_abc, Fabien

Subscribers: Fabien

Differential Revision: https://reviews.bitcoinabc.org/D16192

Details

Provenance
Russell Yanofsky <russ@yanofsky.org>Authored on Jul 8 2021, 18:57
PiRKCommitted on May 22 2024, 05:48
PiRKPushed on May 22 2024, 05:48
Reviewer
Restricted Project
Differential Revision
D16192: gui: Prompt to reset settings when settings.json cannot be read
Parents
rABC0d870b609bf3: [Cashtab] Remove copypasta mock from integration test
Branches
Unknown
Tags
Unknown