Changeset View
Changeset View
Standalone View
Standalone View
src/qt/bitcoingui.cpp
Show First 20 Lines • Show All 1,377 Lines • ▼ Show 20 Lines | switch (status) { | ||||
labelWalletEncryptionIcon->show(); | labelWalletEncryptionIcon->show(); | ||||
labelWalletEncryptionIcon->setPixmap( | labelWalletEncryptionIcon->setPixmap( | ||||
platformStyle->SingleColorIcon(":/icons/lock_open") | platformStyle->SingleColorIcon(":/icons/lock_open") | ||||
.pixmap(STATUSBAR_ICONSIZE, STATUSBAR_ICONSIZE)); | .pixmap(STATUSBAR_ICONSIZE, STATUSBAR_ICONSIZE)); | ||||
labelWalletEncryptionIcon->setToolTip( | labelWalletEncryptionIcon->setToolTip( | ||||
tr("Wallet is <b>encrypted</b> and currently <b>unlocked</b>")); | tr("Wallet is <b>encrypted</b> and currently <b>unlocked</b>")); | ||||
encryptWalletAction->setChecked(true); | encryptWalletAction->setChecked(true); | ||||
changePassphraseAction->setEnabled(true); | changePassphraseAction->setEnabled(true); | ||||
encryptWalletAction->setEnabled( | encryptWalletAction->setEnabled(false); | ||||
false); // TODO: decrypt currently not supported | |||||
break; | break; | ||||
case WalletModel::Locked: | case WalletModel::Locked: | ||||
labelWalletEncryptionIcon->show(); | labelWalletEncryptionIcon->show(); | ||||
labelWalletEncryptionIcon->setPixmap( | labelWalletEncryptionIcon->setPixmap( | ||||
platformStyle->SingleColorIcon(":/icons/lock_closed") | platformStyle->SingleColorIcon(":/icons/lock_closed") | ||||
.pixmap(STATUSBAR_ICONSIZE, STATUSBAR_ICONSIZE)); | .pixmap(STATUSBAR_ICONSIZE, STATUSBAR_ICONSIZE)); | ||||
labelWalletEncryptionIcon->setToolTip( | labelWalletEncryptionIcon->setToolTip( | ||||
tr("Wallet is <b>encrypted</b> and currently <b>locked</b>")); | tr("Wallet is <b>encrypted</b> and currently <b>locked</b>")); | ||||
encryptWalletAction->setChecked(true); | encryptWalletAction->setChecked(true); | ||||
changePassphraseAction->setEnabled(true); | changePassphraseAction->setEnabled(true); | ||||
encryptWalletAction->setEnabled( | encryptWalletAction->setEnabled(false); | ||||
false); // TODO: decrypt currently not supported | |||||
break; | break; | ||||
} | } | ||||
} | } | ||||
void BitcoinGUI::updateWalletStatus() { | void BitcoinGUI::updateWalletStatus() { | ||||
if (!walletFrame) { | if (!walletFrame) { | ||||
return; | return; | ||||
} | } | ||||
▲ Show 20 Lines • Show All 220 Lines • Show Last 20 Lines |