mirror of
https://github.com/monero-project/monero-gui.git
synced 2025-01-10 11:52:05 +02:00
add isTrezor() function
This commit is contained in:
parent
afe1ae9b9c
commit
9dd3f4fecb
@ -239,6 +239,11 @@ bool Wallet::isLedger() const
|
|||||||
return m_walletImpl->getDeviceType() == Monero::Wallet::Device_Ledger;
|
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
|
//! create a view only wallet
|
||||||
bool Wallet::createViewOnly(const QString &path, const QString &password) const
|
bool Wallet::createViewOnly(const QString &path, const QString &password) const
|
||||||
{
|
{
|
||||||
|
@ -187,6 +187,7 @@ public:
|
|||||||
//! hw-device backed wallets
|
//! hw-device backed wallets
|
||||||
Q_INVOKABLE bool isHwBacked() const;
|
Q_INVOKABLE bool isHwBacked() const;
|
||||||
Q_INVOKABLE bool isLedger() const;
|
Q_INVOKABLE bool isLedger() const;
|
||||||
|
Q_INVOKABLE bool isTrezor() const;
|
||||||
|
|
||||||
//! returns if view only wallet
|
//! returns if view only wallet
|
||||||
Q_INVOKABLE bool viewOnly() const;
|
Q_INVOKABLE bool viewOnly() const;
|
||||||
|
Loading…
Reference in New Issue
Block a user