aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorluigi1111 <luigi1111w@gmail.com>2020-05-14 16:04:17 -0500
committerluigi1111 <luigi1111w@gmail.com>2020-05-14 16:04:17 -0500
commitfe68f59763a53e0be47dedd998fbacd7a48a9cf4 (patch)
tree1824fdd16fb70cbee0afc9310a40a065da0b8135 /src
parent80e8dd6aefa26428bbead9a95443886600609d31 (diff)
parent9dd3f4fecb7268c4dab85291c2b4e35cef95b92e (diff)
downloadmonzero-gui-fe68f59763a53e0be47dedd998fbacd7a48a9cf4.tar.gz
monzero-gui-fe68f59763a53e0be47dedd998fbacd7a48a9cf4.tar.xz
monzero-gui-fe68f59763a53e0be47dedd998fbacd7a48a9cf4.zip
Merge pull request #2903
9dd3f4f add isTrezor() function (rating89us)
Diffstat (limited to 'src')
-rw-r--r--src/libwalletqt/Wallet.cpp5
-rw-r--r--src/libwalletqt/Wallet.h1
2 files changed, 6 insertions, 0 deletions
diff --git a/src/libwalletqt/Wallet.cpp b/src/libwalletqt/Wallet.cpp
index 2d7f6722..dc4481ba 100644
--- a/src/libwalletqt/Wallet.cpp
+++ b/src/libwalletqt/Wallet.cpp
@@ -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
{
diff --git a/src/libwalletqt/Wallet.h b/src/libwalletqt/Wallet.h
index f333f935..31b051ad 100644
--- a/src/libwalletqt/Wallet.h
+++ b/src/libwalletqt/Wallet.h
@@ -187,6 +187,7 @@ public:
//! hw-device backed wallets
Q_INVOKABLE bool isHwBacked() const;
Q_INVOKABLE bool isLedger() const;
+ Q_INVOKABLE bool isTrezor() const;
//! returns if view only wallet
Q_INVOKABLE bool viewOnly() const;