mirror of
https://github.com/ElementsProject/elements.git
synced 2026-08-20 13:37:28 +02:00
Check for more than private keys disabled to show receive button
This commit is contained in:
parent
6e6b3b944d
commit
14bcdbe09c
3 changed files with 7 additions and 1 deletions
|
|
@ -571,6 +571,11 @@ bool WalletModel::privateKeysDisabled() const
|
|||
return m_wallet->IsWalletFlagSet(WALLET_FLAG_DISABLE_PRIVATE_KEYS);
|
||||
}
|
||||
|
||||
bool WalletModel::canGetAddresses() const
|
||||
{
|
||||
return m_wallet->hdEnabled() || (!m_wallet->hdEnabled() && !m_wallet->IsWalletFlagSet(WALLET_FLAG_DISABLE_PRIVATE_KEYS));
|
||||
}
|
||||
|
||||
QString WalletModel::getWalletName() const
|
||||
{
|
||||
return QString::fromStdString(m_wallet->getWalletName());
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue