3 minor findings
Findings
[minor] · Quit confirmation survives shutdown and import completion
The import quit confirmation can reopen over the disabled shutdown UI or remain open with an empty wallet name after the import finishes.
Location: qml/pages/MainWindow.qml:96 (head).
Details and suggested fix
After the user confirms Quit, requestQuit() can still see walletImportInProgress as true. It never checks shutdownInProgress, so another tray or platform quit request can reopen the confirmation over the shutdown screen. Shutdown disables the window content containing the overlay, leaving the reopened prompt without usable controls until exit. The importing flag can remain set if executor shutdown discards the restore's GUI completion; how often that ordering occurs is unconfirmed. Separately, if the import finishes while the original confirmation is open, the controller clears importingWalletName, but no handler dismisses the popup. Its message then says "" is still being imported and still offers “Keep importing”. These are confirmation-state defects, not wallet-data loss. Skip confirmation once shutdown has started, and close an outstanding confirmation when the import ends without automatically quitting. Add routing tests for repeated quit after confirmation and completion while the prompt is open.
[minor] · Import retries during a wallet load are silently discarded
Retrying through a retained import-failure banner during a slow wallet load sets the flow's importing flag, but the new busy return provides no result to clear it.
Location: qml/walletqmlcontroller.cpp:710 (head).
Details and suggested fix
After a background import fails, open a closed wallet, then use the failure banner's Details action and “Choose another file” while that wallet is still loading. Unlike the normal Add Wallet entry points, this route has no load guard. WalletCreationFlow.importFile() sets importingWallet = true, but importWallet() now returns silently because walletWorkerBusy() includes ordinary loads. The modal remains on the old error page, and subsequent retry clicks return early. A successful load emits no import result, so it leaves the flag set. A failed load instead reaches the shared load-error handler, which treats it as an import failure while the page still displays the previous import-specific details. Closing the modal recovers. This requires a load slow enough to complete the retry sequence and affects dialog state, not wallet data. Report the busy refusal through setWalletImportError(...), which also updates the shared error signal the flow currently uses to clear its flag.
[minor] · Tray Quit can leave the import confirmation minimized
The hidden-window quit branch does not clear a preserved minimized state, so platforms that do not restore on activation can leave Quit waiting on an unseen import confirmation.
Location: qml/pages/MainWindow.qml:100 (head).
Details and suggested fix
With “hide to tray on minimize” enabled, minimizing during an import calls hideMainWindow() while preserving the minimized window state. A subsequent tray Quit takes the hidden branch in requestQuit(). Its showMainWindow() helper calls QWindow::show(), which does not explicitly clear that state, and the else if prevents showNormal() from running afterward. If the platform does not deiconify the window on activation, shutdown waits for a confirmation inside a still-minimized window until the user restores it. Whether a particular window manager restores on activation was not observed. The new routing test hides a normal window and only counts calls to a mock helper, so it misses this transition; the tray Show action also shares that helper. After showing a hidden window, independently check for minimized visibility and call showNormal(). Add a test that minimizes, hides, requests tray Quit, and checks that the window is visible and no longer minimized.