From 40bdf692d14feae27485458b14b1f80df66ddc18 Mon Sep 17 00:00:00 2001 From: selsta Date: Fri, 16 Aug 2019 21:19:58 +0200 Subject: Ledger: improve hw wallet splash screen --- src/libwalletqt/Wallet.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/libwalletqt/Wallet.cpp') 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 { -- cgit v1.2.3