4 minor findings
Findings
[minor] · A later background import failure appears under an earlier success banner
When an undismissed background success is followed by a background failure, both banners remain visible at the same bottom position, with the stale success stacked above the new error.
Location: qml/pages/MainWindow.qml:401 (head).
Details and suggested fix
Let import A finish after closing its dialog, leave its success banner undismissed, then start import B and close that dialog too. If B fails, onWalletImportFailed() shows the error banner without clearing A's success. Clearing the controller's last-import metadata does not help because the success banner stores its own wallet and walletName. Both sibling banners use identical anchors and width, and the later-declared success stacks above the error, potentially obscuring the failure and its Details action until dismissed. The exact rendering was not checked. Clear the success banner's two properties when a new import starts, and add a routing test covering success followed by failure without dismissing the first result.
[minor] · Closing the importing wallet before the restore result arrives brings it back as open
With no selected wallet, closing the importing wallet during the unmeasured post-rescan notification-to-result window can recreate a GUI model after Core has removed that wallet.
Location: qml/walletqmlcontroller.cpp:1108 (head).
Details and suggested fix
With the import dialog dismissed and selection empty, handleLoadWallet() selects the importing wallet as soon as Core announces it. The native Close Wallet action then becomes enabled because imports no longer set walletLoadInProgress. Core announces the wallet before AddWallet(), postInitProcess() and the settings write finish, so the user can potentially confirm a close before the restore result arrives. Closing removes the GUI model immediately and calls Core's remove() on that model's independent executor. If removal finishes before the result callback, addOrSelectWalletModel() creates a new model for the same CWallet, even though Core has removed it and already emitted its unload notification. The GUI consequently lists it as open without chain notifications. This requires precise timing after the rescan, not during it, and was not reproduced. Refuse closure of m_importing_wallet_name until the result arrives and disable Close Wallet when that wallet is selected. Test the ordering by holding the restore after its load notification, closing the wallet, then releasing the result.
[minor] · Quit-during-import warning treats the backup-derived wallet name as markup
On filesystems permitting markup-looking backup names, the new quit confirmation can interpret the name as formatting and restyle the cancellation warning; the rendered result was not observed.
Location: qml/pages/MainWindow.qml:423 (head).
Details and suggested fix
inferRestoreWalletName() takes the backup's base name, or its parent directory for wallet.dat, and publishes it before restoration. The confirmation inserts that name into AlertPopup.message with .arg(), but the message's CoreText inherits Text.AutoText. For example, a filename such as <font color=#ffffff>x.bak, permitted on Linux and macOS, introduces an unclosed formatting tag that can affect the warning after the wallet name. This adds another instance of the existing close-wallet confirmation pattern; the banners already avoid it with Text.PlainText. Add a plain-text message option to AlertPopup and use it for these wallet-name messages. Cover the new confirmation with a markup-looking name.
[minor] · Import success banner keeps offering Open after the imported wallet closes
Closing or unloading a successfully imported wallet leaves its success banner offering Open, but clicking that action silently does nothing and dismisses the banner.
Location: qml/pages/MainWindow.qml:471 (head).
Details and suggested fix
The background-success banner persists until acted on and bases visibility only on its copied walletName and shutdown state. Closing the imported wallet through the GUI or unloading it over RPC does not clear that name. Its Open action routes the retained reference to DesktopWallets.openWallet(), which safely returns for an unavailable, null, or no-longer-open wallet; the action then clears the banner regardless. Dismiss the banner when its wallet becomes unavailable or leaves openWallets, following the completion page's existing availableChanged and openWalletsChanged handling. Add a routing test that closes the wallet before clicking Open.