File menu commands still run behind the open Add wallet wizard #1118

Open
opened 2026-11-11 12:26:23 +00:00 by jarolrod · 0 comments
jarolrod commented 2026-11-11 12:26:23 +00:00 (Migrated from github.com)

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:

  1. Open a wallet and stay on Activity.
  2. Click the wallet badge and choose Add wallet. The wizard opens on Choose a wallet type.
  3. Choose File → Backup Wallet… and save to a folder that cannot be written.
  4. Choose File → Load PSBT from file… and pick a file that is not a PSBT.

What happens:

  • Backup Wallet… switches the hidden page to Wallet settings and runs the backup. To a writable folder the file is written and nothing visible changes. To an unwritable folder, The wallet could not be backed up. is set on the Wallet settings page, which the wizard covers completely.
  • Load PSBT from file… switches the hidden page to Send and opens the file chooser. For an invalid file, the Not supported error box opens on top of the wizard.
  • After closing the wizard the user is on Send, not on Activity where they started. The backup error is still waiting on Wallet settings.

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 qt6 at eed1f426fcb6, 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.

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: 1. Open a wallet and stay on **Activity**. 2. Click the wallet badge and choose **Add wallet**. The wizard opens on **Choose a wallet type**. 3. Choose **File → Backup Wallet…** and save to a folder that cannot be written. 4. Choose **File → Load PSBT from file…** and pick a file that is not a PSBT. What happens: - **Backup Wallet…** switches the hidden page to Wallet settings and runs the backup. To a writable folder the file is written and nothing visible changes. To an unwritable folder, **The wallet could not be backed up.** is set on the Wallet settings page, which the wizard covers completely. - **Load PSBT from file…** switches the hidden page to Send and opens the file chooser. For an invalid file, the **Not supported** error box opens on top of the wizard. - After closing the wizard the user is on Send, not on Activity where they started. The backup error is still waiting on Wallet settings. 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](https://github.com/bitcoin-core/gui-qml/blob/eed1f426fcb64daa61b004590335a03afe376274/qml/pages/MainWindow.qml#L50-L51), [DesktopMenuActions.qml#L23-L26](https://github.com/bitcoin-core/gui-qml/blob/eed1f426fcb64daa61b004590335a03afe376274/qml/components/DesktopMenuActions.qml#L23-L26)). **Backup Wallet…** and **Load PSBT from file…** need only a loaded wallet ([#L74-L79](https://github.com/bitcoin-core/gui-qml/blob/eed1f426fcb64daa61b004590335a03afe376274/qml/components/DesktopMenuActions.qml#L74-L79), [#L98-L103](https://github.com/bitcoin-core/gui-qml/blob/eed1f426fcb64daa61b004590335a03afe376274/qml/components/DesktopMenuActions.qml#L98-L103)). The wizard is a modal popup inside the window ([MainWindow.qml#L357-L362](https://github.com/bitcoin-core/gui-qml/blob/eed1f426fcb64daa61b004590335a03afe376274/qml/pages/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 `qt6` at `eed1f426fcb6`, 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.
Sign in to join this conversation.
No description provided.