gui: hide HD & encryption icons when no wallet loaded
This commit is contained in:
parent
ac61ec9da6
commit
486f51099f
1 changed files with 3 additions and 1 deletions
|
@ -659,6 +659,8 @@ void BitcoinGUI::removeWallet(WalletModel* walletModel)
|
||||||
rpcConsole->removeWallet(walletModel);
|
rpcConsole->removeWallet(walletModel);
|
||||||
walletFrame->removeWallet(walletModel);
|
walletFrame->removeWallet(walletModel);
|
||||||
updateWindowTitle();
|
updateWindowTitle();
|
||||||
|
labelWalletHDStatusIcon->hide();
|
||||||
|
labelWalletEncryptionIcon->hide();
|
||||||
}
|
}
|
||||||
|
|
||||||
void BitcoinGUI::setCurrentWallet(WalletModel* wallet_model)
|
void BitcoinGUI::setCurrentWallet(WalletModel* wallet_model)
|
||||||
|
@ -1209,7 +1211,7 @@ void BitcoinGUI::setHDStatus(bool privkeyDisabled, int hdEnabled)
|
||||||
{
|
{
|
||||||
labelWalletHDStatusIcon->setPixmap(platformStyle->SingleColorIcon(privkeyDisabled ? ":/icons/eye" : hdEnabled ? ":/icons/hd_enabled" : ":/icons/hd_disabled").pixmap(STATUSBAR_ICONSIZE,STATUSBAR_ICONSIZE));
|
labelWalletHDStatusIcon->setPixmap(platformStyle->SingleColorIcon(privkeyDisabled ? ":/icons/eye" : hdEnabled ? ":/icons/hd_enabled" : ":/icons/hd_disabled").pixmap(STATUSBAR_ICONSIZE,STATUSBAR_ICONSIZE));
|
||||||
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>"));
|
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>"));
|
||||||
|
labelWalletHDStatusIcon->show();
|
||||||
// eventually disable the QLabel to set its opacity to 50%
|
// eventually disable the QLabel to set its opacity to 50%
|
||||||
labelWalletHDStatusIcon->setEnabled(hdEnabled);
|
labelWalletHDStatusIcon->setEnabled(hdEnabled);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue