mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-02-09 10:43:19 -05:00
gui: Remove un-actionable TODO
This commit is contained in:
parent
dc5333d31f
commit
4444dbf4d5
3 changed files with 5 additions and 14 deletions
|
@ -1246,7 +1246,7 @@ void BitcoinGUI::setEncryptionStatus(int status)
|
||||||
labelWalletEncryptionIcon->setToolTip(tr("Wallet is <b>encrypted</b> and currently <b>unlocked</b>"));
|
labelWalletEncryptionIcon->setToolTip(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(false); // TODO: decrypt currently not supported
|
encryptWalletAction->setEnabled(false);
|
||||||
break;
|
break;
|
||||||
case WalletModel::Locked:
|
case WalletModel::Locked:
|
||||||
labelWalletEncryptionIcon->show();
|
labelWalletEncryptionIcon->show();
|
||||||
|
@ -1254,7 +1254,7 @@ void BitcoinGUI::setEncryptionStatus(int status)
|
||||||
labelWalletEncryptionIcon->setToolTip(tr("Wallet is <b>encrypted</b> and currently <b>locked</b>"));
|
labelWalletEncryptionIcon->setToolTip(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(false); // TODO: decrypt currently not supported
|
encryptWalletAction->setEnabled(false);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -31,17 +31,14 @@
|
||||||
#include <QKeyEvent>
|
#include <QKeyEvent>
|
||||||
#include <QMenu>
|
#include <QMenu>
|
||||||
#include <QMessageBox>
|
#include <QMessageBox>
|
||||||
#include <QScrollBar>
|
|
||||||
#include <QScreen>
|
#include <QScreen>
|
||||||
|
#include <QScrollBar>
|
||||||
#include <QSettings>
|
#include <QSettings>
|
||||||
#include <QString>
|
#include <QString>
|
||||||
#include <QStringList>
|
#include <QStringList>
|
||||||
#include <QTime>
|
#include <QTime>
|
||||||
#include <QTimer>
|
#include <QTimer>
|
||||||
|
|
||||||
// TODO: add a scrollback limit, as there is currently none
|
|
||||||
// TODO: make it possible to filter out categories (esp debug messages when implemented)
|
|
||||||
// TODO: receive errors and debug messages through ClientModel
|
|
||||||
|
|
||||||
const int CONSOLE_HISTORY = 50;
|
const int CONSOLE_HISTORY = 50;
|
||||||
const int INITIAL_TRAFFIC_GRAPH_MINS = 30;
|
const int INITIAL_TRAFFIC_GRAPH_MINS = 30;
|
||||||
|
|
|
@ -304,16 +304,10 @@ WalletModel::EncryptionStatus WalletModel::getEncryptionStatus() const
|
||||||
|
|
||||||
bool WalletModel::setWalletEncrypted(bool encrypted, const SecureString &passphrase)
|
bool WalletModel::setWalletEncrypted(bool encrypted, const SecureString &passphrase)
|
||||||
{
|
{
|
||||||
if(encrypted)
|
if (encrypted) {
|
||||||
{
|
|
||||||
// Encrypt
|
|
||||||
return m_wallet->encryptWallet(passphrase);
|
return m_wallet->encryptWallet(passphrase);
|
||||||
}
|
}
|
||||||
else
|
return false;
|
||||||
{
|
|
||||||
// Decrypt -- TODO; not supported yet
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
bool WalletModel::setWalletLocked(bool locked, const SecureString &passPhrase)
|
bool WalletModel::setWalletLocked(bool locked, const SecureString &passPhrase)
|
||||||
|
|
Loading…
Add table
Reference in a new issue