This PR takes care of removing (hiding) the HD wallet and encryption icons when no wallet is loaded.
Fixes #17927
401 | @@ -402,6 +402,7 @@ void BitcoinGUI::createActions() 402 | }); 403 | connect(m_close_wallet_action, &QAction::triggered, [this] { 404 | m_wallet_controller->closeWallet(walletFrame->currentWalletModel(), this); 405 | + labelWalletHDStatusIcon->hide();
This in the wrong place, should be in BitcoinGUI::removeWallet - then it will also work if you open the console and call unloadwallet.
Ooops, many thanks! Will update.
Concept ACK.
1212 | @@ -1211,6 +1213,7 @@ void BitcoinGUI::setHDStatus(bool privkeyDisabled, int hdEnabled) 1213 | labelWalletHDStatusIcon->setToolTip(privkeyDisabled ? tr("Private key <b>disabled</b>") : hdEnabled ? tr("HD key generation is <b>enabled</b>") : tr("HD key generation is <b>disabled</b>")); 1214 | 1215 | // eventually disable the QLabel to set its opacity to 50% 1216 | + labelWalletHDStatusIcon->show();
Just a nit: shouldn't this line be above the comment?
Indeed. Many thanks!
ACK 486f51099ff4e68b67c5bb7ea428c56f3ea1bd55
ACK 486f510
ACK https://github.com/bitcoin/bitcoin/commit/486f51099ff4e68b67c5bb7ea428c56f3ea1bd55 Tested with Ubuntu 16.04 + Qt 5.5.1
658 | @@ -659,6 +659,8 @@ void BitcoinGUI::removeWallet(WalletModel* walletModel) 659 | rpcConsole->removeWallet(walletModel); 660 | walletFrame->removeWallet(walletModel); 661 | updateWindowTitle(); 662 | + labelWalletHDStatusIcon->hide(); 663 | + labelWalletEncryptionIcon->hide();