Skip to content

Commit

Permalink
Highlight GUI statusbar icon when fully-unlocked
Browse files Browse the repository at this point in the history
This causes the GUI to display a red, open padlock when the wallet is
fully-unlocked (not for staking only) to remind a user to lock it.
  • Loading branch information
cyrossignol committed Apr 14, 2021
1 parent bf87f01 commit 8926c60
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/qt/bitcoingui.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1315,7 +1315,11 @@ void BitcoinGUI::setEncryptionStatus(int status)
encryptWalletAction->setEnabled(true);
break;
case WalletModel::Unlocked:
labelEncryptionIcon->setPixmap(QIcon(":/icons/status_encryption_unlocked_" + sSheet).pixmap(STATUSBAR_ICONSIZE,STATUSBAR_ICONSIZE));
if (fWalletUnlockStakingOnly) {
labelEncryptionIcon->setPixmap(QIcon(":/icons/status_encryption_unlocked_" + sSheet).pixmap(STATUSBAR_ICONSIZE,STATUSBAR_ICONSIZE));
} else {
labelEncryptionIcon->setPixmap(QIcon(":/icons/status_encryption_none_" + sSheet).pixmap(STATUSBAR_ICONSIZE,STATUSBAR_ICONSIZE));
}
labelEncryptionIcon->setToolTip(tr("Wallet is <b>encrypted</b> and currently %1 ").arg(fWalletUnlockStakingOnly ? tr("<b>unlocked for staking only</b>") : tr("<b>fully unlocked</b>")));
encryptWalletAction->setChecked(true);
changePassphraseAction->setEnabled(true);
Expand Down

0 comments on commit 8926c60

Please sign in to comment.