add isTrezor() function

This commit is contained in:
rating89us
2020-05-13 13:08:16 +02:00
committed by rating89us
parent afe1ae9b9c
commit 9dd3f4fecb
2 changed files with 6 additions and 0 deletions

View File

@@ -239,6 +239,11 @@ bool Wallet::isLedger() const
return m_walletImpl->getDeviceType() == Monero::Wallet::Device_Ledger;
}
bool Wallet::isTrezor() const
{
return m_walletImpl->getDeviceType() == Monero::Wallet::Device_Trezor;
}
//! create a view only wallet
bool Wallet::createViewOnly(const QString &path, const QString &password) const
{