gui: Show watch-only eye instead of HD disabled
This commit is contained in:
parent
fe1ff5026b
commit
82d6c5aad3
2 changed files with 5 additions and 5 deletions
|
@ -1066,10 +1066,10 @@ bool BitcoinGUI::handlePaymentRequest(const SendCoinsRecipient& recipient)
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
void BitcoinGUI::setHDStatus(int hdEnabled)
|
void BitcoinGUI::setHDStatus(bool privkeyDisabled, int hdEnabled)
|
||||||
{
|
{
|
||||||
labelWalletHDStatusIcon->setPixmap(platformStyle->SingleColorIcon(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(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>"));
|
||||||
|
|
||||||
// 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);
|
||||||
|
@ -1115,7 +1115,7 @@ void BitcoinGUI::updateWalletStatus()
|
||||||
}
|
}
|
||||||
WalletModel * const walletModel = walletView->getWalletModel();
|
WalletModel * const walletModel = walletView->getWalletModel();
|
||||||
setEncryptionStatus(walletModel->getEncryptionStatus());
|
setEncryptionStatus(walletModel->getEncryptionStatus());
|
||||||
setHDStatus(walletModel->wallet().hdEnabled());
|
setHDStatus(walletModel->privateKeysDisabled(), walletModel->wallet().hdEnabled());
|
||||||
}
|
}
|
||||||
#endif // ENABLE_WALLET
|
#endif // ENABLE_WALLET
|
||||||
|
|
||||||
|
|
|
@ -215,7 +215,7 @@ private:
|
||||||
@param[in] status current hd enabled status
|
@param[in] status current hd enabled status
|
||||||
@see WalletModel::EncryptionStatus
|
@see WalletModel::EncryptionStatus
|
||||||
*/
|
*/
|
||||||
void setHDStatus(int hdEnabled);
|
void setHDStatus(bool privkeyDisabled, int hdEnabled);
|
||||||
|
|
||||||
public Q_SLOTS:
|
public Q_SLOTS:
|
||||||
bool handlePaymentRequest(const SendCoinsRecipient& recipient);
|
bool handlePaymentRequest(const SendCoinsRecipient& recipient);
|
||||||
|
|
Loading…
Reference in a new issue