aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
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 8b7c23cd..2cc8b4c4 100644
--- a/src/libwalletqt/Wallet.cpp
+++ b/src/libwalletqt/Wallet.cpp
@@ -258,6 +258,11 @@ bool Wallet::isHwBacked() const
return m_walletImpl->getDeviceType() != Monero::Wallet::Device_Software;
}
+bool Wallet::isLedger() const
+{
+ return m_walletImpl->getDeviceType() == Monero::Wallet::Device_Ledger;
+}
+
//! 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 65880599..cf5f84b7 100644
--- a/src/libwalletqt/Wallet.h
+++ b/src/libwalletqt/Wallet.h
@@ -180,6 +180,7 @@ public:
//! hw-device backed wallets
Q_INVOKABLE bool isHwBacked() const;
+ Q_INVOKABLE bool isLedger() const;
//! returns if view only wallet
Q_INVOKABLE bool viewOnly() const;