mirror of
https://github.com/bitcoin-core/gui-qml.git
synced 2026-12-02 07:54:42 +00:00
File menu commands still run behind the open Add wallet wizard #1118
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#1118
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?
With the Add wallet wizard open, the File menu's wallet commands stay enabled. They act on the page hidden behind the wizard, so results and errors appear where the user cannot see them, or on top of the wizard.
To reproduce:
What happens:
The same commands with no wizard open behave normally: the page and its error are visible.
The menu's enabled rules depend on the page stack depth and on a wallet being loaded (MainWindow.qml#L50-L51, DesktopMenuActions.qml#L23-L26). Backup Wallet… and Load PSBT from file… need only a loaded wallet (#L74-L79, #L98-L103). The wizard is a modal popup inside the window (MainWindow.qml#L357-L362), and none of those rules look at it. By their enabled flags, Close wallet, Open URI, Sign message and Verify message are also available in this state; I did not run those.
Expected: disable the wallet and navigation menu commands while the wizard is open, or close the wizard before running one.
Nothing is lost. A backup started this way gives no visible result, and a failed one is reported only on a hidden page.
Reproduced on merged
qt6ateed1f426fcb6, macOS / Qt 6.9, isolated regtest, offscreen and native. The menu commands were triggered through the test bridge after confirming that the commands and the native menu items were enabled; the macOS menu bar itself was not clicked. File choosers were answered through the test bridge and the backup path through the test-automation path field. Only the wizard's first page was tested, not a wizard that is creating or importing.