Skip to content

Commit 82d6c5a

Browse files
committed
gui: Show watch-only eye instead of HD disabled
1 parent fe1ff50 commit 82d6c5a

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

src/qt/bitcoingui.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1066,10 +1066,10 @@ bool BitcoinGUI::handlePaymentRequest(const SendCoinsRecipient& recipient)
10661066
return false;
10671067
}
10681068

1069-
void BitcoinGUI::setHDStatus(int hdEnabled)
1069+
void BitcoinGUI::setHDStatus(bool privkeyDisabled, int hdEnabled)
10701070
{
1071-
labelWalletHDStatusIcon->setPixmap(platformStyle->SingleColorIcon(hdEnabled ? ":/icons/hd_enabled" : ":/icons/hd_disabled").pixmap(STATUSBAR_ICONSIZE,STATUSBAR_ICONSIZE));
1072-
labelWalletHDStatusIcon->setToolTip(hdEnabled ? tr("HD key generation is <b>enabled</b>") : tr("HD key generation is <b>disabled</b>"));
1071+
labelWalletHDStatusIcon->setPixmap(platformStyle->SingleColorIcon(privkeyDisabled ? ":/icons/eye" : hdEnabled ? ":/icons/hd_enabled" : ":/icons/hd_disabled").pixmap(STATUSBAR_ICONSIZE,STATUSBAR_ICONSIZE));
1072+
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>"));
10731073

10741074
// eventually disable the QLabel to set its opacity to 50%
10751075
labelWalletHDStatusIcon->setEnabled(hdEnabled);
@@ -1115,7 +1115,7 @@ void BitcoinGUI::updateWalletStatus()
11151115
}
11161116
WalletModel * const walletModel = walletView->getWalletModel();
11171117
setEncryptionStatus(walletModel->getEncryptionStatus());
1118-
setHDStatus(walletModel->wallet().hdEnabled());
1118+
setHDStatus(walletModel->privateKeysDisabled(), walletModel->wallet().hdEnabled());
11191119
}
11201120
#endif // ENABLE_WALLET
11211121

src/qt/bitcoingui.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,7 @@ public Q_SLOTS:
215215
@param[in] status current hd enabled status
216216
@see WalletModel::EncryptionStatus
217217
*/
218-
void setHDStatus(int hdEnabled);
218+
void setHDStatus(bool privkeyDisabled, int hdEnabled);
219219

220220
public Q_SLOTS:
221221
bool handlePaymentRequest(const SendCoinsRecipient& recipient);

0 commit comments

Comments
 (0)