mirror of
https://github.com/bitcoin-core/gui-qml.git
synced 2026-12-02 08:03:39 +00:00
Wallet backup: add async progress, success state, and destination handling #625
Labels
No labels
Android
Bug
Build system
Design suggestion
Doc
Needs design review
Needs rebase
Stage
UX
Up for grabs
Upstream
Wallet
duplicate
enhancement
good first issue
question
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
bitcoin-core/gui-qml#625
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Code Gap
The wallet settings backup action calls the model backup method synchronously and only reports failure. On success the UI clears the error text, but it does not confirm the backup, show the destination, or offer a reliable way to open the saved location.
Work Needed
The failure report is not visible at the default window size either, so today a failed backup and a successful one look the same.
For a wallet with private keys in the default 800x665 window, "The wallet could not be backed up." is in the last row of Wallet settings, below the visible part of the page. The page does not scroll to it and there is no popup.
To reproduce:
Nothing on the page changes. No file is written, or the existing file is left byte-identical, and
debug.loghas "Unable to continue sqlite backup: file is not a database". In a 1180x900 window the same click shows the red line under Sign or verify message.At
efc4a2c754ebthe row sits at y 652 to 714 while the page shows y 98 to 665, and the red text is at y 678 to 688, so a window about 25 px taller shows it (at2bd5a61e8304: y 670 to 732 against 116 to 665). It is the last child of the page:github.com/bitcoin-core/gui-qml@efc4a2c754/qml/pages/settings/WalletSectionPage.qml (L209-L213)The refusal is Core's:
backupwalletfails on the same paths with "Error: Wallet backup failed!". Bitcoin-Qt reports both outcomes in a message box.The same row also keeps an old error. After a wrong current password on Update password and Back, "The current wallet password was incorrect." stays in it until the password page is opened again or a backup is started.
#1057 at
fc657610b860moves the failure text into a popup, by its diff. Its success banner is added as the last child of the same page, so at this window size it would land where the error is now.Reproduced on
qt6at2bd5a61e8304andeed1f426fcb6, macOS arm64 / Qt 6.9.0, isolated regtest, offscreen and native. Limits: